diff options
author | erdgeist <> | 2013-03-02 13:19:50 +0000 |
---|---|---|
committer | erdgeist <> | 2013-03-02 13:19:50 +0000 |
commit | 6538f994c8f4cc9a327e49257b3db6c101b4a4c1 (patch) | |
tree | b2fb3eb03ee3640ded2dcfc540ca3b83caacea55 /rc.d-jaildaemon | |
parent | c2f20b16030f9099bc04da26154709c25ba5f6f0 (diff) |
Add an rc-script plus its install target
Diffstat (limited to 'rc.d-jaildaemon')
-rwxr-xr-x | rc.d-jaildaemon | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/rc.d-jaildaemon b/rc.d-jaildaemon new file mode 100755 index 0000000..9eb8268 --- /dev/null +++ b/rc.d-jaildaemon | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/sh | ||
2 | # $Id$ | ||
3 | # | ||
4 | # $FreeBSD$ | ||
5 | # | ||
6 | # PROVIDE: jaildaemon | ||
7 | # REQUIRE: cleanvar | ||
8 | # BEFORE: ezjail | ||
9 | # KEYWORD: nojail shutdown | ||
10 | # | ||
11 | # Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable jaildaemon | ||
12 | # | ||
13 | #jaildaemon_enable="YES" | ||
14 | |||
15 | |||
16 | . /etc/rc.subr | ||
17 | |||
18 | name="jaildaemon" | ||
19 | rcvar="jaildaemon_enable" | ||
20 | pidfile="/var/run/${name}.pid" | ||
21 | command="/usr/local/bin/${name}" | ||
22 | |||
23 | jaildaemon_flags="-D -p ${pidfile}" | ||
24 | |||
25 | : ${jaildaemon_enable:=no} | ||
26 | |||
27 | load_rc_config $name | ||
28 | run_rc_command "$1" | ||