Kaynağa Gözat

Variations in SysV init changes. Most systems should start nrpe on

runlevels 2-5. At least one distribution does not have network and
syslog available on runlevels 2 and 4. So I changed back to 2-5 and
made syslog and network "Should-Start" and "Should-Stop" instead.
Not great, but sufficient, and doesn't require another init script.
John C. Frickson 9 yıl önce
ebeveyn
işleme
024b7c9bfb
2 değiştirilmiş dosya ile 8 ekleme ve 5 silme
  1. 2 1
      .gitignore
  2. 6 4
      startup/default-init.in

+ 2 - 1
.gitignore

@@ -26,7 +26,8 @@ startup/default-service
 startup/default-socket
 startup/default-socket-svc
 startup/default-xinetd
-startup/mac-org.plist
+startup/mac-init.plist
+startup/mac-inetd.plist
 startup/newbsd-init
 startup/openbsd-init
 startup/openrc-conf

+ 6 - 4
startup/default-init.in

@@ -8,10 +8,12 @@
 #
 ### BEGIN INIT INFO
 # Provides:           nrpe
-# Required-Start:     $local_fs $remote_fs $syslog $network $time
-# Required-Stop:      $local_fs $remote_fs $syslog $network
-# Default-Start:      3 5
-# Default-Stop:       0 1 2 4 6
+# Required-Start:     $local_fs $remote_fs $time
+# Required-Stop:      $local_fs $remote_fs
+# Should-Start:       $syslog $network
+# Should-Stop:        $syslog $network
+# Default-Start:      2 3 4 5
+# Default-Stop:       0 1 6
 # Short-Description:  Starts and stops the Nagios Remote Plugin Executor
 # Description:        Starts and stops the Nagios Remote Plugin Executor
 #                     so a remote nagios server can run plugins on this host