3 # virtlogd: virtual machine log manager
6 # description: This is a daemon for managing logs
7 # of virtual machine consoles
9 # processname: virtlogd
14 # Source function library.
15 . /etc/rc.d/init.d/functions
18 if [ -f /etc/sysconfig/virtlogd ] ; then
19 . /etc/sysconfig/virtlogd
23 if [ -f /var/lock/subsys/virtlogd ]; then
24 msg_already_running "virtlogd"
29 msg_starting "virtlogd"
30 daemon /usr/sbin/virtlogd --daemon $VIRTLOGD_CONFIG_ARGS $VIRTLOGD_ARGS
32 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/virtlogd
36 if [ ! -f /var/lock/subsys/virtlogd ]; then
37 msg_not_running "virtlogd"
41 msg_stopping "virtlogd"
43 rm -f /var/lock/subsys/virtlogd
48 if [ ! -f /var/lock/subsys/virtlogd ]; then
49 msg_not_running "virtlogd"
54 msg_reloading virtlogd
55 killproc virtlogd -HUP
60 if [ ! -f /var/lock/subsys/virtlogd ]; then
61 msg_not_running "virtlogd"
69 # See how we were called.
91 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"