From 67ebbac0be7ad917e794ca5ea0496d0a1ead83b8 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 6 May 2025 04:10:06 -0400 Subject: much work (options, rc script, make install, etc etc). --- rc.marsond | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 rc.marsond (limited to 'rc.marsond') diff --git a/rc.marsond b/rc.marsond new file mode 100644 index 0000000..3de1c23 --- /dev/null +++ b/rc.marsond @@ -0,0 +1,36 @@ +#!/bin/sh + +# Start/stop/restart marsond, Slackware-style. + +# To start marsond at boot, make sure this script is executable: + +# chmod 755 /etc/rc.d/rc.marsond +# ...and then add this to /etc/rc.d/rc.local: + +# [ -x /etc/rc.d/rc.marsond ] && /etc/rc.d/rc.marsond + +# There's no need to add anything to rc.local_shutdown, as the +# daemon will always exit cleanly. + +# If you need to set the keyboard's input device name and/or the +# delay time for Enter key releases, uncomment and modify the +# next line: + +#MARSOND_OPTS="-d 30 -k /dev/input/by-id/your-device-name-goes-here" + +# By default, marsond drops privilege to nobody:nogroup after +# initialization. You can use a different user and group by +# uncommenting and modifying these: + +#MARSON_USER=nobody +#MARSON_GROUP=nogroup + +PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin +export PATH + +case "$1" in + start) /usr/sbin/marsond $MARSOND_OPTS ;; + stop) /sbin/killall marsond ;; + restart) "$0" stop ; sleep 2; "$0" start ;; + *) echo "usage $0 start|stop|restart" ;; +esac -- cgit v1.2.3