3 # lircmd Linux Infrared Remote Control mouse daemon
6 # description: LIRC is a package that allows you to decode and send \
7 # infra-red signals of many (but not all) commonly used \
11 # pidfile: /var/run/lirc/lircmd.pid
12 # config: /etc/lirc/lircmd.conf
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 if [ -f /var/lock/subsys/lircmd ]; then
19 msg_already_running "Linux Infrared Remote Control mouse daemon"
23 msg_starting "Linux Infrared Remote Control mouse daemon"
24 daemon /usr/sbin/lircmd
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/lircmd
30 if [ ! -f /var/lock/subsys/lircmd ]; then
31 msg_not_running "Linux Infrared Remote Control mouse daemon"
35 msg_stopping "Linux Infrared Remote Control mouse daemon"
37 rm -f /var/lock/subsys/lircmd >/dev/null 2>&1
41 if [ ! -f /var/lock/subsys/lircmd ]; then
42 msg_not_running "Linux Infrared Remote Control mouse daemon"
52 if [ ! -f /var/lock/subsys/lircmd ]; then
53 msg_not_running "Linux Infrared Remote Control mouse daemon"
58 msg_reloading "Linux Infrared Remote Control mouse daemon"
64 # See how we were called.
87 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"