[SSSD] FC16 - how to get ExecStop= to be executed at shutdown?
Stephen Gallagher
sgallagh at redhat.com
Sun Dec 4 14:28:18 UTC 2011
I suspect you sent this to the wrong list.
On Dec 4, 2011, at 8:45 AM, Josh Geisser <josh at gebaschtel.ch> wrote:
> 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
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/sssd-devel
More information about the sssd-devel
mailing list