#!/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: #export MARSON_USER=nobody #export 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