View | Details | Raw Unified
Collapse All | Expand All

(-) BackupPC-2.1.0-old/init.d/src/gentoo-backuppc (-16 lines)
 Lines 9-17    Link Here 
# description: Starts and stops the BackupPC server
# description: Starts and stops the BackupPC server
# Copy to /etc/init.d and run 'rc-update add backuppc default'
# Copy to /etc/init.d and run 'rc-update add backuppc default'
# get our configuration options
source /etc/conf.d/backuppc
checkconfig() {
checkconfig() {
	if [ ! -f ${CONF_FILE} ] ; then
	if [ ! -f ${CONF_FILE} ] ; then
		eeror "No ${CONF_FILE} exists!"
		eeror "No ${CONF_FILE} exists!"
 Lines 30-45    Link Here 
	start-stop-daemon --stop --pidfile ${PID_FILE} --name BackupPC
	start-stop-daemon --stop --pidfile ${PID_FILE} --name BackupPC
	eend $?
	eend $?
}
}
restart() {
	ebegin "Restarting BackupPC"
	svc_stop
	svc_start
	eend $? "Failed to restart BackupPC"
}
status() {
	return
	eend $?
}