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 | /sbin/start-stop-daemon --start --quiet --exec @sbindir@/@install_name@
|
---|
12 | eend $?
|
---|
13 | @sh_insmod_cmd@
|
---|
14 | }
|
---|
15 |
|
---|
16 | stop() {
|
---|
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 |
|
---|
23 | reload() {
|
---|
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.