diff options
author | Bryan Drewery <bryan@shatow.net> | 2013-05-20 17:20:55 +0400 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2013-05-20 17:20:55 +0400 |
commit | f342a3dbac67057af8b9efc8ddab7469de1db3ea (patch) | |
tree | f4ce1504423e8bd071dc0461969b4918e476c01e /src | |
parent | 66ac72b21dc08e1aeca9964a4d214f9e436da016 (diff) |
Add an rc script for daemon
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/rc.d/poudriere | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/etc/rc.d/poudriere b/src/etc/rc.d/poudriere new file mode 100644 index 00000000..e0e488f1 --- /dev/null +++ b/src/etc/rc.d/poudriere @@ -0,0 +1,27 @@ +#!/bin/sh +# PROVIDE: poudriere +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# +# poudriere_enable="YES" +# + +. /etc/rc.subr + +name=poudriere +rcvar=poudriere_enable + +# read configuration +load_rc_config ${name} + +: ${poudriere_enable:=NO} +: ${poudriere_pidfile:=/var/run/${name}.pid} + +pidfile="${poudriere_pidfile}" +command=/usr/local/share/${name}/daemon.sh +command_interpreter=/bin/sh +command_args="daemon -p ${pidfile}" + +# run service +run_rc_command "$1" |