systemd is ignoring ExecStop in the unit file, runs it as part of ExecStart
1
1
I am trying to have several VirtualBox images start automatically on boot and to be shutdown properly on host shutdown before powering down. I have a bash script, /usr/local/bin/vmctl.sh , that handles starting and stopping the guest images using calls to VBoxManage. The start call is very simple - it just runs through a list of images and calls VBoxManage startvm --type headless "<imgname>" then exits 0. The stop call cycles through the list and calls VBoxManage controlvm "<imgname>" acpipowerbutton then loops until VBoxManage list runningvms returns an empty list OR 60 seconds passes before it exits 0. Running the script from the command line works perfectly. I have set up a unit file in /lib/systemd/system/vmctl.service : [Unit] Description=VirtualBox Control After=v...