提交 b9c1a9cb 编写于 作者: J Jiri Denemark

spec: Start libvirt-guests only if it's on in current runlevel

上级 f10d2095
......@@ -775,7 +775,8 @@ fi
/sbin/ldconfig
/sbin/chkconfig --add libvirt-guests
if [ $1 -ge 1 ]; then
if /sbin/chkconfig --list libvirt-guests | /bin/grep -q :on ; then
level=$(/sbin/runlevel | /bin/cut -d ' ' -f 2)
if /sbin/chkconfig --list libvirt-guests | /bin/grep -q $level:on ; then
# this doesn't do anything but allowing for libvirt-guests to be
# stopped on the first shutdown
/sbin/service libvirt-guests start > /dev/null 2>&1 || true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册