git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@654
959494ce-11ee-0310-bf91-
de5d638817bd
--- /dev/null
+#!/sbin/runscript
+
+opts="start stop restart reload"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting doldacond"
+ ulimit -c unlimited
+ start-stop-daemon -S -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond -- -p /var/run/doldacond.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping doldacond"
+ start-stop-daemon -K -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading doldacond"
+ start-stop-daemon -K -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond -s HUP
+ eend $?
+}