Am 02.09.18 um 16:41 schrieb Ralf Sieger: > Hi Harald, > >> what exactly does "/usr/local/bin/wait_borg"? > Small script which terminates whn no "borg" processes exist any more. > >> why are the no dependecnies to the services it waits for? > The process it waits for is not a service but a normal user program. > >> "TimeoutStopSec=600" alone does nothing then prevent systemd kills the >> whole service bfore that timeout is reached at shutdown > You mean at shutdown this timeout is ignored? no, i did not say that - i said it's the timeout after ExecStop will be killed the service below waits as expected until ExecStop has finish which is when VMare Workstation powered off the guest after shtdown within it triggered by open-vm-tools and has a limit of 5 minutes to do so -------------- [root@srv-rhsoft:~]$ cat /etc/systemd/system/guest-testserver.service [Unit] Description=VMware-Guest Testserver PartOf=vmware-guest.target Requisite=vmware.service After=vmware-vmnet.service iptables.service [Service] Type=oneshot RemainAfterExit=yes Nice=19 IOSchedulingClass=idle User=vmware Group=vmware ExecStart=/usr/bin/vmrun -T ws start '/vms/testserver/config.vmx' nogui ExecReload=-/usr/bin/vmrun -T ws reset '/vms/testserver/config.vmx' nogui soft ExecStop=-/usr/bin/vmrun -T ws stop '/vms/testserver/config.vmx' nogui soft TimeoutSec=300 ReadOnlyPaths=/etc ReadOnlyPaths=/usr CapabilityBoundingSet=~CAP_AUDIT_CONTROL CAP_AUDIT_WRITE CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_PTRACE IPAddressDeny=any IPAddressAllow=localhost [Install] WantedBy=vmware-guest.target _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel