diff options
Diffstat (limited to 'etc/private/install/vm-gen-service')
-rwxr-xr-x | etc/private/install/vm-gen-service | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/private/install/vm-gen-service b/etc/private/install/vm-gen-service index c4938c2..ae49a49 100755 --- a/etc/private/install/vm-gen-service +++ b/etc/private/install/vm-gen-service @@ -180,13 +180,16 @@ ExecStart=$bin/vm-start \\ --ram \${RAM} \\ --tap \${TAP} \\ --mac \${MAC} \\ + --pid $run/%i.pid \\ --monitor $run/%i-mon.sock \\ --console $run/%i-con.sock \\ $var/%i.img -ExecStop=$bin/vm-stop $run/%i-mon.sock +ExecStop=$bin/vm-stop $run/%i.pid $run/%i-mon.sock -# Make systemd wait for ExecStop completion. +# This makes sure systemd waits for the ExecStart command to exit rather +# than killing it as soon as ExecStop exits (this is necessary since our +# vm-stop may exit just before vm-start). # KillMode=none TimeoutStopSec=60 |