git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/kvm-clustervm@.service
diff options
context:
space:
mode:
authorHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-07-09 17:36:39 +0200
committerHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-07-09 17:36:39 +0200
commite28143db4c0cf9d2c203445eb92b05f98ad828e4 (patch)
tree386d7ff2f62340ca03225df91b83ff8e058f5ee7 /etc/systemd/system/kvm-clustervm@.service
parent3242b85a68b81f900642001d837e4ce49b99b89c (diff)
downloadsystemd-units-e28143db4c0cf9d2c203445eb92b05f98ad828e4.tar.bz2
Initial commit of kvmhelper and improvement of systemd services
Diffstat (limited to 'etc/systemd/system/kvm-clustervm@.service')
-rw-r--r--etc/systemd/system/kvm-clustervm@.service10
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/systemd/system/kvm-clustervm@.service b/etc/systemd/system/kvm-clustervm@.service
index 1d86851..f21cbcd 100644
--- a/etc/systemd/system/kvm-clustervm@.service
+++ b/etc/systemd/system/kvm-clustervm@.service
@@ -20,14 +20,12 @@ After=kvm-network@san-cluster.service
PartOf=cluster-muromachi.target
[Service]
-Type=forking
-ExecStartPre=/bin/sleep 5
-ExecStart=/bin/virsh start %i
-ExecStop=/bin/virsh shutdown %i
-ExecStopPost=/bin/sleep 15
+Type=oneshot
+ExecStart=/usr/local/bin/kvmhelper -q vm-start %i
+ExecStop=/usr/local/bin/kvmhelper -q vm-stop %i
RemainAfterExit=yes
TimeoutStartSec=10s
-TimeoutStopSec=40s
+TimeoutStopSec=60s
[Install]
WantedBy=cluster-muromachi.target