source: branches/samhain-2_2-branch/init/samhain.startGentoo.in@ 178

Last change on this file since 178 was 1, checked in by katerina, 19 years ago

Initial import

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