Created
December 11, 2017 17:09
-
-
Save silvae86/0a87d4711f957b966fc4d1c88555322f to your computer and use it in GitHub Desktop.
Revisions
-
silvae86 created this gist
Dec 11, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ ````bash sudo vim /etc/systemd/system/[email protected] ```` ````config Requires=systemd-modules-load.service After=systemd-modules-load.service [Install] [Unit] Description=VBox Virtual Machine %I Service Requires=systemd-modules-load.service After=systemd-modules-load.service [Service] User=joaorocha Group=vboxusers ExecStart=/usr/bin/VBoxHeadless -s %I ExecStop=/usr/bin/VBoxManage controlvm %I acpipowerbutton [Install] WantedBy=multi-user.target ````