aboutsummaryrefslogtreecommitdiff
path: root/rc.marsond
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-05-06 04:10:06 -0400
committerB. Watson <urchlay@slackware.uk>2025-05-06 04:10:06 -0400
commit67ebbac0be7ad917e794ca5ea0496d0a1ead83b8 (patch)
treed169b8481afe91a394023c294741a21e57cb033f /rc.marsond
parentc4eda00ddbc16723f3e1d1e943edaaa2c6c2c748 (diff)
downloadmarsond-67ebbac0be7ad917e794ca5ea0496d0a1ead83b8.tar.gz
much work (options, rc script, make install, etc etc).
Diffstat (limited to 'rc.marsond')
-rw-r--r--rc.marsond36
1 files changed, 36 insertions, 0 deletions
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