diff options
author | June McEnroe <june@causal.agency> | 2020-05-20 21:40:11 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-20 21:40:11 -0400 |
commit | 245b0cbb43e4f7745db1ef6a9082692be6a89053 (patch) | |
tree | 07e0ee90be17569f58bd95737ee457b00c6fca88 /rc.d/litterbox | |
parent | Update email addresses (diff) | |
download | litterbox-245b0cbb43e4f7745db1ef6a9082692be6a89053.tar.gz litterbox-245b0cbb43e4f7745db1ef6a9082692be6a89053.zip |
Rewrite build and install like pounce 1.3
man pages are no longer compressed!
Diffstat (limited to 'rc.d/litterbox')
-rw-r--r-- | rc.d/litterbox | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/rc.d/litterbox b/rc.d/litterbox deleted file mode 100644 index fbcc97d..0000000 --- a/rc.d/litterbox +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# PROVIDE: litterbox -# REQUIRE: LOGIN -# KEYWORD: shutdown - -. /etc/rc.subr - -name='litterbox' -rcvar='litterbox_enable' - -load_rc_config "${name}" - -: ${litterbox_enable:='NO'} - -command='/usr/sbin/daemon' -pidprefix="/var/run/${name}" -pidfile="${pidprefix}.pid" - -child_command='/usr/local/bin/litterbox' - -if [ -n "$2" ]; then - profile=$2 - if [ -n "${litterbox_profiles}" ]; then - pidfile="${pidprefix}.${profile}.pid" - eval litterbox_enable="\${litterbox_${profile}_enable:-${litterbox_enable}}" - eval litterbox_flags="\${litterbox_${profile}_flags:-${litterbox_flags}}" - eval litterbox_user="\${litterbox_${profile}_user:-${litterbox_user}}" - eval litterbox_env="\${litterbox_${profile}_env:-${litterbox_env}}" - else - echo "$0: extra argument ignored" - fi -else - if [ -n "${litterbox_profiles}" -a -n "$1" ]; then - for profile in ${litterbox_profiles}; do - echo "===> ${name} profile: ${profile}" - /usr/local/etc/rc.d/${name} "$1" "${profile}" || exit "$?" - done - exit - fi -fi - -child_flags=$litterbox_flags -child_user=$litterbox_user -unset litterbox_flags litterbox_user -command_args="\ - -r -P ${pidfile} -T ${name}${profile:+/${profile}} \ - ${child_user:+-u ${child_user}} \ - -- ${child_command} ${child_flags}" - -run_rc_command "$1" |