fix backup selection
[BackupPC.git] / init.d / src / freebsd-backuppc2
1 #!/bin/sh
2
3 # PROVIDE: backuppc
4 # REQUIRE: LOGIN 
5 #
6 # Add the following line to /etc/rc.conf to enable BackupPC:
7 #
8 # backuppc_enable="YES"
9 #
10 # Submitted by Dan Niles
11
12 . /etc/rc.subr
13
14 name="backuppc"
15 rcvar=`set_rcvar`
16 load_rc_config $name
17
18 : ${backuppc_enable:="NO"}
19 : ${backuppc_program:="__INSTALLDIR__/bin/BackupPC"}
20 : ${backuppc_flags:="-d"}
21 : ${backuppc_user:="__BACKUPPCUSER__"}
22 command_interpreter="/usr/bin/perl"
23 command=$backuppc_program
24 pidfile="__LOGDIR__/BackupPC.pid"
25
26 run_rc_command "$1"