diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-06 12:00:08 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-06 12:00:08 +0000 |
commit | 8e4e3b184c22ddb50734c337605fbb5ac1976734 (patch) | |
tree | fe7df51ede487ee925ddb1dbf30b4016de18237e /www/abyssws/files/abyssws.sh.in | |
parent | f56a7d53f0103750defbbf824f685230d12e22da (diff) |
Notes
Diffstat (limited to 'www/abyssws/files/abyssws.sh.in')
-rw-r--r-- | www/abyssws/files/abyssws.sh.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/www/abyssws/files/abyssws.sh.in b/www/abyssws/files/abyssws.sh.in new file mode 100644 index 000000000000..b0d6a9244ca7 --- /dev/null +++ b/www/abyssws/files/abyssws.sh.in @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: abyssws +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# abyssws_enable (bool): Set to NO by default. +# Set it to YES to enable abyssws. +# + +. %%RC_SUBR%% + +name=abyssws +rcvar=${name}_enable + +command="%%PREFIX%%/lib/abyssws/abyssws" +command_args="-d >/dev/null" +pidfile="%%PREFIX%%/lib/abyssws/log/abyssws.pid" +stop_postcmd="abyssws_poststop" + +abyssws_poststop() +{ + /bin/rm -f "${pidfile}" +} + +load_rc_config $name + +: ${abyssws_enable="NO"} + +run_rc_command "$1" |