/[BackupPC]/trunk/init.d/src/gentoo-backuppc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/init.d/src/gentoo-backuppc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 316 - (show annotations)
Mon Jan 30 13:37:17 2006 UTC (18 years, 5 months ago) by dpavlin
File size: 879 byte(s)
 r9152@llin:  dpavlin | 2006-01-30 14:11:45 +0100
 update to upstream 2.1.2

1 #!/sbin/runscript
2 #
3 # DESCRIPTION
4 #
5 # Startup init script for BackupPC on Gentoo` linux.
6 #
7 # Distributed with BackupPC version 2.1.2, released 5 Sep 2005.
8 #
9 # description: Starts and stops the BackupPC server
10 # Copy to /etc/init.d and run 'rc-update add backuppc default'
11
12 # get our configuration options
13 source /etc/conf.d/backuppc
14
15 checkconfig() {
16 if [ ! -f ${CONF_FILE} ] ; then
17 eeror "No ${CONF_FILE} exists!"
18 fi
19 }
20
21 start() {
22 checkconfig || return 1
23 ebegin "Starting BackupPC"
24 start-stop-daemon --start --chuid ${USER} --user ${USER} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS}
25 eend $?
26 }
27
28 stop() {
29 ebegin "Stopping BackupPC"
30 start-stop-daemon --stop --pidfile ${PID_FILE} --name BackupPC
31 eend $?
32 }
33
34 restart() {
35 ebegin "Restarting BackupPC"
36 svc_stop
37 sleep 1
38 svc_start
39 eend $? "Failed to restart BackupPC"
40 }
41
42 status() {
43 return
44 eend $?
45 }
46

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26