diff options
author | H. P. <harald.p.@xmart.de> | 2018-07-09 17:36:39 +0200 |
---|---|---|
committer | H. P. <harald.p.@xmart.de> | 2018-07-09 17:36:39 +0200 |
commit | e28143db4c0cf9d2c203445eb92b05f98ad828e4 (patch) | |
tree | 386d7ff2f62340ca03225df91b83ff8e058f5ee7 /etc/systemd/system/kvm-network@.service | |
parent | 3242b85a68b81f900642001d837e4ce49b99b89c (diff) | |
download | systemd-units-e28143db4c0cf9d2c203445eb92b05f98ad828e4.tar.bz2 |
Initial commit of kvmhelper and improvement of systemd services
Diffstat (limited to 'etc/systemd/system/kvm-network@.service')
-rw-r--r-- | etc/systemd/system/kvm-network@.service | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/systemd/system/kvm-network@.service b/etc/systemd/system/kvm-network@.service index 84862a7..aca4e4b 100644 --- a/etc/systemd/system/kvm-network@.service +++ b/etc/systemd/system/kvm-network@.service @@ -4,12 +4,12 @@ Requires=libvirtd.service After=libvirtd.service [Service] -Type=forking -ExecStart=/bin/virsh net-start %i -ExecStop=/bin/virsh net-destroy %i +Type=oneshot +ExecStart=/usr/local/bin/kvmhelper -q net-start %i +ExecStop=/usr/local/bin/kvmhelper -q net-stop %i RemainAfterExit=yes TimeoutStartSec=10s -TimeoutStopSec=40s +TimeoutStopSec=10s [Install] WantedBy=multi-user.target |