summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-backup/boxbackup/files/bbackupd.rc')
-rw-r--r--app-backup/boxbackup/files/bbackupd.rc21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-backup/boxbackup/files/bbackupd.rc b/app-backup/boxbackup/files/bbackupd.rc
new file mode 100644
index 000000000000..a1a9ae2de771
--- /dev/null
+++ b/app-backup/boxbackup/files/bbackupd.rc
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need localmount
+ use net
+}
+
+start() {
+ ebegin "Starting box backup daemon"
+ start-stop-daemon --start --exec /usr/sbin/bbackupd > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping box backup daemon"
+ start-stop-daemon --stop --exec /usr/sbin/bbackupd
+ eend $?
+}