X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=init.d%2Fsrc%2Fgentoo-backuppc;h=4de84bad857463a38bbdba4ae1b1f22223c962e3;hp=e214941de35cb1480362a33decf24734b7da5ef4;hb=b81d2da5e16975674f011e4833337ac0fa24e0ea;hpb=7dee89bfce659051d486cc66515bb7f22bbc4f09 diff --git a/init.d/src/gentoo-backuppc b/init.d/src/gentoo-backuppc index e214941..4de84ba 100755 --- a/init.d/src/gentoo-backuppc +++ b/init.d/src/gentoo-backuppc @@ -14,14 +14,14 @@ source /etc/conf.d/backuppc checkconfig() { if [ ! -f ${CONF_FILE} ] ; then - eeror "No ${CONF_FILE} exists!" + eerror "No ${CONF_FILE} exists!" fi } start() { checkconfig || return 1 ebegin "Starting BackupPC" - start-stop-daemon --start --user ${USER} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS} + start-stop-daemon --start --chuid ${USER} --user ${USER} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS} eend $? } @@ -34,6 +34,7 @@ stop() { restart() { ebegin "Restarting BackupPC" svc_stop + sleep 1 svc_start eend $? "Failed to restart BackupPC" }