| 1 | #!/sbin/runscript |
| 2 | |
| 3 | opts="start stop restart reload" |
| 4 | |
| 5 | depend() { |
| 6 | need net |
| 7 | } |
| 8 | |
| 9 | start() { |
| 10 | ebegin "Starting doldacond" |
| 11 | ulimit -c unlimited |
| 12 | start-stop-daemon -S -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond -- -p /var/run/doldacond.pid |
| 13 | eend $? |
| 14 | } |
| 15 | |
| 16 | stop() { |
| 17 | ebegin "Stopping doldacond" |
| 18 | start-stop-daemon -K -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond |
| 19 | eend $? |
| 20 | } |
| 21 | |
| 22 | reload() { |
| 23 | ebegin "Reloading doldacond" |
| 24 | start-stop-daemon -K -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond -s HUP |
| 25 | eend $? |
| 26 | } |