Hi all

I succeeded with auto login and auto start of my Virtual Boxes, but could not 
get them to do a proper shutdown. 

Because of the nature of the VM processes I want to send them a proper ACPI 
shutdown button instead of terminating the process, which is done through my 
old rc-script. 

The VirtualBoxes process are started AFTER X11 is up, but must also be shutdown 
BEFORE the display-manager is exited.  

How do I configure this in the service file?

My /lib/systemd/system/vbox.service:

[Unit]
Description=Virtual Box Machines
After=vboxdrv.service network.target display-manager.service

[Service]
Type=forking
ExecStart=/home/vmuser/./rc.virtualboxes start | /usr/bin/logger
ExecStop=/home/vmuser/./rc.virtualboxes stop | /usr/bin/logger

[Install]
WantedBy=graphical.target


Cheers & thx
Josh

-- 
----
ASG at hnet
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to