3 # atieventsd ATI External Events Daemon
7 # description: ATI External Events Daemon
9 # processname: atieventsd
11 # pidfile: /var/run/atieventsd.pid
13 # Source function library
14 . /etc/rc.d/init.d/functions
17 DAEMONXAUTHFILE=/var/run/$DAEMONNAME.Xauthority
19 # Get service config - may override defaults
20 [ -f /etc/sysconfig/atieventsd ] && . /etc/sysconfig/atieventsd
23 # Check if the service is already running?
24 if [ -f /var/lock/subsys/atieventsd ]; then
25 msg_already_running "atieventsd"
29 msg_starting "atieventsd"
30 XAUTHORITY=$DAEMONXAUTHFILE daemon /usr/sbin/atieventsd $DAEMONOPTS
31 pidofproc atieventsd > /var/run/atieventsd.pid
33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atieventsd
37 if [ ! -f /var/lock/subsys/atieventsd ]; then
38 msg_not_running "atieventsd"
43 msg_stopping "atieventsd"
44 killproc --pidfile /var/run/atieventsd.pid atieventsd
45 rm -f /var/lock/subsys/atieventsd
49 if [ ! -f /var/lock/subsys/atieventsd ]; then
50 msg_not_running "atieventsd"
60 # See how we were called.
83 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"