summaryrefslogtreecommitdiffstats
path: root/brltty/brltty
blob: ce2f5b6dc4ac3064fece72bb84fb58a526155471 (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
#!/bin/bash

daemon_name=brltty

. /etc/sysconfig/rc
. ${rc_functions}
. /etc/conf.d/$daemon_name.conf

case "$1" in
  start)
    boot_mesg "Starting $daemon_name daemon"
    loadproc /usr/bin/$daemon_name $brltty_args;;

  stop)
    loadproc "Stopping $daemon_name daemon"
    killproc $daemon_name;;

  restart)
    $0 stop
    sleep 3
    $0 start
    ;;

  status)
    statusproc $daemon_name
    ;;

  *)
    echo "usage: $0 {start|stop|restart|status}"
esac

exit 0