source:
trunk/init/samhain.startGentoo.in@
441
Last change on this file since 441 was 321, checked in by , 14 years ago | |
---|---|
File size: 664 bytes |
Line | |
---|---|
1 | #!/sbin/runscript |
2 | |
3 | opts="depend start stop reload" |
4 | |
5 | depend() { |
6 | need clock hostname logger |
7 | } |
8 | |
9 | start() { |
10 | ebegin "Starting @install_name@" |
11 | @sh_insmod_pre@ |
12 | /sbin/start-stop-daemon --start --quiet --exec @sbindir@/@install_name@ |
13 | eend $? |
14 | @sh_insmod_cmd@ |
15 | } |
16 | |
17 | stop() { |
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 | |
24 | reload() { |
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.