aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2011-06-09 06:44:47 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-06-09 06:44:47 +0000
commitfbc81c7431206a8d9b5e96808da858e622fc2217 (patch)
tree05490174a962107252d153e7163e9aadd024ad24 /main
parenteb5f53d44344842ff8eab219e317a5d2869a3f11 (diff)
downloadaports-fbc81c7431206a8d9b5e96808da858e622fc2217.tar.bz2
aports-fbc81c7431206a8d9b5e96808da858e622fc2217.tar.xz
main/backuppc: init scripts added
Diffstat (limited to 'main')
-rw-r--r--main/backuppc/APKBUILD2
-rw-r--r--main/backuppc/backuppc.initd43
2 files changed, 44 insertions, 1 deletions
diff --git a/main/backuppc/APKBUILD b/main/backuppc/APKBUILD
index 9568c9372a..694c0a2f2f 100644
--- a/main/backuppc/APKBUILD
+++ b/main/backuppc/APKBUILD
@@ -4,7 +4,7 @@ pkgname="backuppc"
_realname="BackupPC"
pkgver="3.2.0"
_realver="3.2.0"
-pkgrel=2
+pkgrel=3
pkgdesc="High-performance, enterprise-grade backup system"
url="http://backuppc.sourceforge.net/"
arch="noarch"
diff --git a/main/backuppc/backuppc.initd b/main/backuppc/backuppc.initd
new file mode 100644
index 0000000000..eefdc92c7c
--- /dev/null
+++ b/main/backuppc/backuppc.initd
@@ -0,0 +1,43 @@
+#!/sbin/runscript
+
+depend() {
+ after firewall modules
+}
+
+
+configure () {
+ chown $USER $BACKUPPC_LOGDIR
+ chmod a+x $BACKUPPC_BINDIR/*
+ test -x $BACKUPPC_BINDIR/$DAEMON || exit 0
+}
+
+start() {
+ ebegin "Starting $DAEMON"
+ start-stop-daemon --start --pidfile $BACKUPPC_LOGDIR/BackupPC.pid \
+ -c $USER --exec $BACKUPPC_BINDIR/$DAEMON -- -d
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping $DAEMON"
+ start-stop-daemon --stop --pidfile $BACKUPPC_LOGDIR/BackupPC.pid \
+ --retry 30 -x /usr/bin/perl
+ eend $?
+}
+
+restart () {
+ start-stop-daemon --stop --pidfile $BACKUPPC_LOGDIR/BackupPC.pid \
+ --retry 30 -x /usr/bin/perl
+ start-stop-daemon --start --pidfile $BACKUPPC_LOGDIR/BackupPC.pid \
+ -c $USER --exec $BACKUPPC_BINDIR/$DAEMON -- -d
+}
+
+reload () {
+ start-stop-daemon --stop --pidfile $BACKUPPC_LOGDIR/BackupPC.pid \
+ --signal 1 -x /usr/bin/perl
+}
+
+
+
+
+