diff options
Diffstat (limited to 'init/samhain.startLinux.in')
-rw-r--r-- | init/samhain.startLinux.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/init/samhain.startLinux.in b/init/samhain.startLinux.in index 81c5e92..55ceaaf 100644 --- a/init/samhain.startLinux.in +++ b/init/samhain.startLinux.in @@ -11,8 +11,8 @@ ### BEGIN INIT INFO # Provides: @install_name@ -# Required-Start: $syslog $network -# Required-Stop: $syslog $network +# Required-Start: $syslog $network $remote_fs +# Required-Stop: $syslog $network $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Keep an eye on stuff @@ -39,8 +39,15 @@ fi # Sort out sourcing in the distribution specific library functions # and the command to run them. if [ -f /etc/redhat-release ]; then + if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions DISTRO=redhat + elif [ -f /etc/rc.d/init.d/functions ]; then + . /etc/rc.d/init.d/functions + DISTRO=redhat + else + DISTRO=generic + fi elif [ -f /etc/mandrake-release ]; then . /etc/init.d/functions DISTRO=redhat |