diff options
author | June McEnroe <june@causal.agency> | 2019-11-03 00:28:20 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-03 00:28:20 -0400 |
commit | 831e2f1049fa64a5b5eed84c80361d45f32d5a81 (patch) | |
tree | 9c3a74e7238cb6d18cd72636c8c1819f6294031e /rc.d/pounce | |
parent | Set procname in calico rc script (diff) | |
download | pounce-831e2f1049fa64a5b5eed84c80361d45f32d5a81.tar.gz pounce-831e2f1049fa64a5b5eed84c80361d45f32d5a81.zip |
Set up /var/run/calico and /usr/local/etc/pounce
Diffstat (limited to 'rc.d/pounce')
-rw-r--r-- | rc.d/pounce | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.d/pounce b/rc.d/pounce index 599c585..9777fda 100644 --- a/rc.d/pounce +++ b/rc.d/pounce @@ -13,11 +13,13 @@ sig_reload='USR1' load_rc_config "${name}" -: ${pounce_enable:="NO"} +: ${pounce_enable:='NO'} +: ${pounce_chdir:="/usr/local/etc/${name}"} command='/usr/sbin/daemon' pidprefix="/var/run/${name}" pidfile="${pidprefix}.pid" +required_dirs=$pounce_chdir child_command='/usr/local/bin/pounce' child_pidfile="${pidprefix}.child.pid" @@ -29,6 +31,7 @@ if [ -n "$2" ]; then 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}}" else echo "$0: extra argument ignored" |