Changeset 481 for trunk/init
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- Location:
- trunk/init
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/init/samhain.startGentoo.in
r321 r481 9 9 start() { 10 10 ebegin "Starting @install_name@" 11 @sh_insmod_pre@12 11 /sbin/start-stop-daemon --start --quiet --exec @sbindir@/@install_name@ 13 12 eend $? 14 @sh_insmod_cmd@15 13 } 16 14 -
trunk/init/samhain.startLSB.in
r321 r481 87 87 case "$1" in 88 88 start) 89 #90 # Preloaded kernel module91 #92 @sh_insmod_pre@93 #94 89 ${DAEMON} start 95 90 ERRNUM=$? 96 #97 # The hiding kernel module98 #99 if [ $ERRNUM -eq 0 ]; then100 @sh_insmod_cmd@101 fi102 #103 91 SH_ACT="started" 104 92 ;; -
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.