File: virt-sandbox-service.logrotate

package info (click to toggle)
libvirt-sandbox 0.5.1%2Bgit20160404-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,104 kB
  • ctags: 1,964
  • sloc: ansic: 12,696; python: 2,110; makefile: 447; sh: 302; xml: 151; perl: 110
file content (9 lines) | stat: -rw-r--r-- 253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh
for name in `/usr/bin/virsh -c lxc:/// -q list | awk '{print $2}'`
do
    if test -d "/etc/libvirt-sandbox/services/$name"
    then
        /usr/bin/virt-sandbox-service -c lxc:/// execute $name -- /etc/cron.daily/logrotate
    fi
done
exit 0