blob: a997c935564343185cf3fc149aea5c76aad9d817 (
plain)
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
30
|
#!/bin/sh
# PROVIDE: znapzend
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable znapzend:
# znapzend_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable znapzend.
#
. /etc/rc.subr
name=znapzend
desc="Znapzend backup daemon"
rcvar=znapzend_enable
load_rc_config $name
: ${znapzend_enable:=NO}
extra_commands=reload
command_interpreter=/usr/local/bin/perl
sig_reload=HUP
pidfile=/var/run/${name}.pid
command=%%PREFIX%%/bin/${name}
command_args="--daemonize --pidfile=${pidfile} --logto=/var/log/znapzend.log"
run_rc_command "$1"
|