First version.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 24 Jun 2006 20:39:28 +0000 (20:39 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 24 Jun 2006 20:39:28 +0000 (20:39 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@654 959494ce-11ee-0310-bf91-de5d638817bd

contrib/gentoo-init.d-doldacond [new file with mode: 0755]

diff --git a/contrib/gentoo-init.d-doldacond b/contrib/gentoo-init.d-doldacond
new file mode 100755 (executable)
index 0000000..c860b34
--- /dev/null
@@ -0,0 +1,26 @@
+#!/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 $?
+}