blob: 9b73df7c2522d09586d17c4a0a5d514a1b80a5bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
# PROVIDE: backuppc
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable BackupPC:
# backuppc_enable="YES"
. /etc/rc.subr
name="backuppc"
rcvar=backuppc_enable
load_rc_config $name
: ${backuppc_enable:="NO"}
: ${backuppc_flags:="-d"}
: ${backuppc_user:="backuppc"}
: ${backuppc_group:="backuppc"}
: ${backuppc_config:="%%ETCDIR%%/config.pl"}
command_interpreter="%%PREFIX%%/bin/perl"
command="%%PREFIX%%/bin/BackupPC"
required_files="${backuppc_config}"
pidfile="/var/run/BackupPC/BackupPC.pid"
run_rc_command "$1"
|