Commit da2c742d authored by Leonardo Arena's avatar Leonardo Arena

main/backuppc: init scripts added

fixes #654
(cherry picked from commit 9ddc6044)
parent e39e7cc0
......@@ -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"
......
#!/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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment