source: trunk/init/samhain.startGentoo.in@ 429

Last change on this file since 429 was 321, checked in by katerina, 14 years ago

Fix for ticket #240: The samhain_kmem kernel module should be loaded earlier

File size: 664 bytes
RevLine 
[1]1#!/sbin/runscript
2
3opts="depend start stop reload"
4
5depend() {
6 need clock hostname logger
7}
8
9start() {
10 ebegin "Starting @install_name@"
[321]11 @sh_insmod_pre@
[1]12 /sbin/start-stop-daemon --start --quiet --exec @sbindir@/@install_name@
13 eend $?
14 @sh_insmod_cmd@
15}
16
17stop() {
18 ebegin "Stopping @install_name@"
19 /sbin/start-stop-daemon --stop --quiet --retry 15 --exec @sbindir@/@install_name@
20 rm -f @mylockfile@
21 eend $?
22}
23
24reload() {
25 if [ ! -f @mylockfile@ ]; then
26 eerror "@install_name@ isn't running"
27 return 1
28 fi
29 ebegin "Reloading configuration"
30 kill -HUP `cat @mylockfile@` &>/dev/null
31 eend $?
32}
Note: See TracBrowser for help on using the repository browser.