4 # BackupPC Debian init script
9 # Do not change the values below ! Read /usr/share/doc/backuppc/README.Debian !
10 BINDIR=/data/backuppc/bin
11 DATADIR=/data/backuppc/data
17 test -x $BINDIR/$DAEMON || exit 0
21 echo -n "Starting $NAME: "
22 start-stop-daemon --start --pidfile $DATADIR/log/BackupPC.pid \
23 -c $USER --exec $BINDIR/$DAEMON -- -d
27 echo -n "Stopping $NAME: "
28 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
33 echo -n "Restarting $NAME: "
34 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
36 start-stop-daemon --start --pidfile $DATADIR/log/BackupPC.pid \
37 -c $USER --exec $BINDIR/$DAEMON -- -d
41 echo "Reloading $NAME configuration files"
42 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid \
46 echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}"