5 # Startup init script for BackupPC on Redhat linux.
7 # Distributed with BackupPC version __VERSION__, released __RELEASEDATE__.
10 # description: Starts and stops the BackupPC server
12 # Source function library.
13 if [ -f /etc/init.d/functions ] ; then
14 . /etc/init.d/functions
15 elif [ -f /etc/rc.d/init.d/functions ] ; then
16 . /etc/rc.d/init.d/functions
25 # You can set the SMB share password here is you wish. Otherwise
26 # you should put it in the config.pl script.
27 # If you put it here make sure this file has no read permissions
28 # for normal users! See the documentation for more information.
30 # Replace the daemon line below with this:
32 # daemon --user __BACKUPPCUSER__ /usr/bin/env BPC_SMB_PASSWD=xxxxx \
33 # __INSTALLDIR__/bin/BackupPC -d
35 echo -n "Starting BackupPC: "
36 daemon --user __BACKUPPCUSER__ __INSTALLDIR__/bin/BackupPC -d
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/backuppc || \
45 echo -n "Shutting down BackupPC: "
46 killproc __INSTALLDIR__/bin/BackupPC
48 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/backuppc
59 echo -n "Reloading config.pl file: "
60 killproc __INSTALLDIR__/bin/BackupPC -HUP
67 status __INSTALLDIR__/bin/BackupPC
87 echo "Usage: $0 {start|stop|restart|reload|status}"