diff options
author | June McEnroe <june@causal.agency> | 2020-08-27 17:43:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-27 17:43:55 -0400 |
commit | fb8a33c0130e6381ce69402607e5c240f97b471b (patch) | |
tree | 99534193c5bcf73a6c0c78d301063fbfc611fee3 /rc.d/pounce.in | |
parent | contrib/palaver: Fix documented database path (diff) | |
download | pounce-fb8a33c0130e6381ce69402607e5c240f97b471b.tar.gz pounce-fb8a33c0130e6381ce69402607e5c240f97b471b.zip |
Remove rc scripts
Diffstat (limited to 'rc.d/pounce.in')
-rw-r--r-- | rc.d/pounce.in | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/rc.d/pounce.in b/rc.d/pounce.in deleted file mode 100644 index b8dda40..0000000 --- a/rc.d/pounce.in +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -# PROVIDE: pounce -# REQUIRE: LOGIN -# KEYWORD: shutdown - -. /etc/rc.subr - -name='pounce' -rcvar='pounce_enable' -extra_commands='reload' -sig_reload='USR1' - -load_rc_config "${name}" - -: ${pounce_enable:='NO'} -: ${pounce_chdir:="%%PREFIX%%/etc/${name}"} - -command='/usr/sbin/daemon' -pidprefix="/var/run/${name}" -pidfile="${pidprefix}.pid" -required_dirs=$pounce_chdir - -child_command='%%PREFIX%%/bin/pounce' -child_pidfile="${pidprefix}.child.pid" - -if [ -n "$2" ]; then - profile=$2 - if [ -n "${pounce_profiles}" ]; then - pidfile="${pidprefix}.${profile}.pid" - child_pidfile="${pidprefix}.${profile}.child.pid" - eval pounce_enable="\${pounce_${profile}_enable:-${pounce_enable}}" - eval pounce_flags="\${pounce_${profile}_flags:-${pounce_flags}}" - eval pounce_chdir="\${pounce_${profile}_chdir:-${pounce_chdir}}" - eval pounce_user="\${pounce_${profile}_user:-${pounce_user}}" - eval pounce_env="\${pounce_${profile}_env:-${pounce_env}}" - else - echo "$0: extra argument ignored" - fi -else - if [ -n "${pounce_profiles}" -a -n "$1" ]; then - for profile in ${pounce_profiles}; do - echo "===> ${name} profile: ${profile}" - %%PREFIX%%/etc/rc.d/${name} "$1" "${profile}" || exit "$?" - done - exit - fi -fi - -child_flags=$pounce_flags -child_user=$pounce_user -unset pounce_flags pounce_user -command_args="\ - -r -P ${pidfile} -p ${child_pidfile} -T ${name}${profile:+/${profile}} \ - ${child_user:+-u ${child_user}} \ - -- ${child_command} ${child_flags}" - -pounce_reload() { - rc_pid=$(check_pidfile "$child_pidfile" "$child_command") - kill "-$sig_reload" "$rc_pid" -} -reload_cmd='pounce_reload' - -run_rc_command "$1" |