Changeset 481 for trunk/init/samhain.startLinux.in
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/init/samhain.startLinux.in
r466 r481 1 1 #!/bin/bash 2 2 3 # chkconfig: 2345 99 10 3 4 # description: File Integrity Checking Daemon … … 8 9 # database: @mydatafile@ 9 10 # 11 12 ### BEGIN INIT INFO 13 # Provides: @install_name@ 14 # Required-Start: $syslog $network 15 # Required-Stop: $syslog $network 16 # Default-Start: 2 3 4 5 17 # Default-Stop: 0 1 6 18 # Short-Description: Keep an eye on stuff 19 # Description: Keep an eye on stuff 20 ### END INIT INFO 10 21 11 22 # For Debian … … 140 151 fi 141 152 # 142 # Preloaded kernel module143 #144 @sh_insmod_pre@145 #146 153 case "$DISTRO" in 147 154 debian) 148 155 echo -n "Starting ${NAME}" 149 ( /sbin/start-stop-daemon --start -- quiet --exec $DAEMON )156 ( /sbin/start-stop-daemon --start --oknodo --quiet --exec $DAEMON ) 150 157 RETVAL=$? 151 158 debian_end … … 183 190 ;; 184 191 esac 185 #186 # The hiding kernel module187 #188 if [ $RETVAL -eq 0 ]; then189 @sh_insmod_cmd@190 fi191 192 exit $RETVAL 192 193 ;; … … 196 197 debian) 197 198 echo -n "Stopping $NAME" 198 ( /sbin/start-stop-daemon --stop -- quiet --exec $DAEMON )199 ( /sbin/start-stop-daemon --stop --oknodo --quiet --exec $DAEMON ) 199 200 RETVAL=$? 200 201 debian_end
Note:
See TracChangeset
for help on using the changeset viewer.