[yum-cvs] yum/etc yum-updatesd.init,NONE,1.1
Jeremy Katz
katzj at linux.duke.edu
Wed Jun 14 03:19:58 UTC 2006
Update of /home/groups/yum/cvs/yum/etc
In directory login1.linux.duke.edu:/tmp/cvs-serv16420
Added Files:
yum-updatesd.init
Log Message:
add init script
--- NEW FILE yum-updatesd.init ---
#!/bin/bash
#
# yum This shell script enables the yum-updates daemon
#
# Author: Jeremy Katz <katzj at redhat.com>
#
# chkconfig: 345 97 03
#
# description: This is a daemon which periodically checks for updates \
# and can send notifications via mail, dbus or syslog.
# processname: yum-updatesd
# config: /etc/yum/yum-updatesd.conf
# pidfile: /var/run/yum-updatesd.pid
#
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
start() {
echo -n $"Starting yum-updatesd: "
daemon yum-updatesd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/yum-updatesd
}
stop() {
echo -n $"Stopping yum-updatesd: "
killproc yum-updatesd
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/yum-updatesd
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|force-reload|reload)
restart
;;
condrestart)
[ -f /var/lock/subsys/yum-updatesd ] && restart
;;
status)
status yum-updatesd
REVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
exit 1
esac
exit $RETVAL
More information about the Yum-cvs-commits
mailing list