4 |
# |
# |
5 |
# Startup init script for BackupPC on Gentoo` linux. |
# Startup init script for BackupPC on Gentoo` linux. |
6 |
# |
# |
7 |
# Distributed with BackupPC version 2.1.0, released 20 Jun 2004. |
# Distributed with BackupPC version 2.1.2, released 5 Sep 2005. |
8 |
# |
# |
9 |
# description: Starts and stops the BackupPC server |
# description: Starts and stops the BackupPC server |
10 |
# Copy to /etc/init.d and run 'rc-update add backuppc default' |
# Copy to /etc/init.d and run 'rc-update add backuppc default' |
34 |
restart() { |
restart() { |
35 |
ebegin "Restarting BackupPC" |
ebegin "Restarting BackupPC" |
36 |
svc_stop |
svc_stop |
37 |
|
sleep 1 |
38 |
svc_start |
svc_start |
39 |
eend $? "Failed to restart BackupPC" |
eend $? "Failed to restart BackupPC" |
40 |
} |
} |