summary refs log tree commit diff
path: root/rc.d
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-03 00:28:20 -0400
committerJune McEnroe <june@causal.agency>2019-11-03 00:28:20 -0400
commit831e2f1049fa64a5b5eed84c80361d45f32d5a81 (patch)
tree9c3a74e7238cb6d18cd72636c8c1819f6294031e /rc.d
parentSet procname in calico rc script (diff)
downloadpounce-831e2f1049fa64a5b5eed84c80361d45f32d5a81.tar.gz
pounce-831e2f1049fa64a5b5eed84c80361d45f32d5a81.zip
Set up /var/run/calico and /usr/local/etc/pounce
Diffstat (limited to '')
-rw-r--r--rc.d/calico5
-rw-r--r--rc.d/pounce5
2 files changed, 8 insertions, 2 deletions
diff --git a/rc.d/calico b/rc.d/calico
index 6d5b022..32c21d8 100644
--- a/rc.d/calico
+++ b/rc.d/calico
@@ -11,11 +11,14 @@ rcvar='calico_enable'
 
 load_rc_config "${name}"
 
-: ${calico_enable:="NO"}
+: ${calico_enable:='NO'}
+: ${calico_path:="/var/run/${name}"}
+calico_flags="${calico_flags} ${calico_path}"
 
 command='/usr/sbin/daemon'
 procname='/usr/local/bin/calico'
 pidfile="/var/run/${name}.pid"
+required_dirs=$calico_path
 
 child_flags=$calico_flags
 child_user=$calico_user
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"
bfbc414c&follow=1'>Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe>Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. 2019-09-08Set title User-AgentJune McEnroe Some things don't like you if you don't send one. 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe