diff options
author | root <root@rshg054.dnsready.net> | 2012-11-04 01:49:10 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-04 01:49:10 -0700 |
commit | 2030e810a5cfd4d3ff6e0f8930560c96f2990eb2 (patch) | |
tree | 383f3fafef303aec9d89c9da313b51bbaf424ac0 /community/libvirt/libvirtd-guests.rc.d | |
parent | e3f70522f1f35359d9307f478c96dace20a51ca1 (diff) |
Sun Nov 4 01:48:41 PDT 2012
Diffstat (limited to 'community/libvirt/libvirtd-guests.rc.d')
-rwxr-xr-x | community/libvirt/libvirtd-guests.rc.d | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/community/libvirt/libvirtd-guests.rc.d b/community/libvirt/libvirtd-guests.rc.d index 02b26ecfa..3100b34fb 100755 --- a/community/libvirt/libvirtd-guests.rc.d +++ b/community/libvirt/libvirtd-guests.rc.d @@ -1,8 +1,32 @@ #!/bin/bash -. /etc/conf.d/libvirtd-guests -. /etc/rc.conf -. /etc/rc.d/functions +source /etc/conf.d/libvirtd-guests +[ -f /etc/rc.conf ] && source /etc/rc.conf + +if [ -f /etc/rc.d/functions ]; then + . /etc/rc.d/functions +else + stat_busy() { + echo "$*" + } + + stat_fail() { + echo "FAIL" + } + + stat_done() { + echo "DONE" + } + + add_daemon() { + true + } + + rm_daemon() { + true + } +fi + LIBVIRTD_LISTFILE="/var/state/libvirtd/vm-list" |