3 # yum This shell script enables the yum-updates daemon
5 # Author: Jeremy Katz <katzj@redhat.com>
6 # Adapted for ArchLinux by Chris Tusa <linisys@gmail.com>
8 # description: This is a daemon which periodically checks for updates \
9 # and can send notifications via mail, dbus or syslog.
11 # processname: yum-updatesd
12 # config: /etc/yum/yum-updatesd.conf
13 # pidfile: /var/run/yum-updatesd.pid
21 stat_busy
"Starting yum-updatesd"
22 [ ! -f /var
/run
/daemons
/yum-updatesd
] && nice
+19 /usr
/sbin
/yum-updatesd
26 pgrep
-of "yum-updatesd" > /var
/run
/yum-updatesd.pid
27 add_daemon yum-updatesd
33 stat_busy
"Stopping yum-updatesd"
34 [ -f /var
/run
/yum-updatesd.pid
] && kill `cat /var/run/yum-updatesd.pid`
38 rm_daemon yum-updatesd
48 echo "usage: $0 {start|stop|restart}"