5d7b5d06 |
1 | #!/sbin/runscript |
2 | |
3 | opts="start stop restart reload" |
4 | |
5 | depend() { |
6 | need net |
7 | } |
8 | |
9 | start() { |
c7f65f51 |
10 | ebegin "Cleaning file lists" |
11 | rm -f /tmp/dc-filelist-* |
12 | eend 0 |
5d7b5d06 |
13 | ebegin "Starting doldacond" |
14 | ulimit -c unlimited |
c7f65f51 |
15 | start-stop-daemon -S -p /var/run/doldacond.pid -q -e LD_PRELOAD=/usr/lib/libkrb4.so:/usr/lib/libdes425.so -x /usr/local/bin/doldacond -- -sp /var/run/doldacond.pid |
5d7b5d06 |
16 | eend $? |
17 | } |
18 | |
19 | stop() { |
20 | ebegin "Stopping doldacond" |
c7f65f51 |
21 | start-stop-daemon -K -p /var/run/doldacond.pid -q -x /usr/local/bin/doldacond |
5d7b5d06 |
22 | eend $? |
23 | } |
24 | |
25 | reload() { |
26 | ebegin "Reloading doldacond" |
c7f65f51 |
27 | start-stop-daemon -K -p /var/run/doldacond.pid -q -x /usr/local/bin/doldacond -s HUP |
5d7b5d06 |
28 | eend $? |
29 | } |