5 # Startup init script for BackupPC on Gentoo` linux.
7 # Distributed with BackupPC version __VERSION__, released __RELEASEDATE__.
9 # description: Starts and stops the BackupPC server
10 # Copy to /etc/init.d and run 'rc-update add backuppc default'
12 # get our configuration options
13 source /etc/conf.d/backuppc
16 if [ ! -f ${CONF_FILE} ] ; then
17 eerror "No ${CONF_FILE} exists!"
22 checkconfig || return 1
23 ebegin "Starting BackupPC"
24 start-stop-daemon --start --chuid ${USER} --user ${USER} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS}
29 ebegin "Stopping BackupPC"
30 start-stop-daemon --stop --pidfile ${PID_FILE} --name BackupPC
35 ebegin "Restarting BackupPC"
39 eend $? "Failed to restart BackupPC"