5 # Startup init script for BackupPC on suse linux.
7 # Distributed with BackupPC version __VERSION__, released __RELEASEDATE__.
13 BINDIR=__INSTALLDIR__/bin
20 test -x $BINDIR/$DAEMON || exit 0
24 echo -n "Starting $NAME: "
25 startproc -f -p $DATADIR/log/BackupPC.pid -u $USER $BINDIR/$DAEMON -d
29 echo -n "Stopping $NAME: "
30 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
35 echo -n "Stopping $NAME: "
36 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
39 echo -n "Starting $NAME: "
40 startproc -f -p $DATADIR/log/BackupPC.pid -u $USER $BINDIR/$DAEMON -d
44 echo "Reloading $NAME configuration files"
45 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid \
46 --signal 1 -x /usr/bin/perl
49 echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}"