소스 검색

Merge pull request #170 from orlitzky/init-script-defaults

startup/openrc-init.in: supply a default value for NRPE_CFG.
Sebastian Wolf 6 년 전
부모
커밋
71d654f7ba
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      startup/openrc-init.in

+ 4 - 0
startup/openrc-init.in

@@ -3,6 +3,10 @@
 # Copyright (c) 2017 Nagios(R) Core(TM) Development Team
 #
 
+# Supply a default value for NRPE_CFG in case the corresponding
+# conf.d file is not installed.
+: ${NRPE_CFG:="@sysconfdir@/nrpe.cfg"}
+
 command="@sbindir@/nrpe"
 command_args="--config=${NRPE_CFG} ${NRPE_OPTS}"
 command_args_background="--daemon"