aboutsummaryrefslogtreecommitdiff
path: root/rc.marsond
blob: dfacf400ec5146b22920db754da204cc4a6536d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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:

#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