summaryrefslogtreecommitdiff
path: root/usr/local
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-09 16:37:27 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-09 16:37:27 -0500
commitb031b254878ad94f91c1724cac2b2b5e800961f7 (patch)
tree00842a170bb3ebab43390f6a60983ca03b1fc4d6 /usr/local
parentc235e308a5f489caf7f6bb734bc78918a4134bdc (diff)
downloadtheglassyladies-master.tar.xz
theglassyladies-master.zip
fixed dichroism startupHEADmaster
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/etc/rc.d/dichroism11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/etc/rc.d/dichroism b/usr/local/etc/rc.d/dichroism
index fba6f7c..8b69d09 100644
--- a/usr/local/etc/rc.d/dichroism
+++ b/usr/local/etc/rc.d/dichroism
@@ -3,9 +3,14 @@
. /etc/rc.subr
name="dichroism"
+title="Dichroism"
rcvar="${name}_enable"
-command="/usr/local/bin/${name}"
-start_cmd="cd /var/db/theglassyladies; ${command}"
-load_rc_config $name
+pidfile="/var/run/${name}.pid"
+exec_path="/usr/local/bin/${name}"
+output_file="/var/log/${name}.log"
+command="/usr/sbin/daemon"
+command_args="-r -t ${title} -o ${output_file} -P ${pidfile} ${exec_path}"
+dichroism_chdir="/var/db/theglassyladies"
+load_rc_config ${name}
run_rc_command "$1"