summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-02-22 12:51:17 +0200
committerBlackNoxis <steven.darklight@gmail.com>2015-02-22 12:51:17 +0200
commit5aa176b4d0b3d96fa00499efd042d8a029575751 (patch)
tree32590fb38bcea8609776883da4b066543776fec6 /app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
parent1f256194c40ef12a65dfe14a41394775a957077e (diff)
Added virtualbox-guest-additions
Diffstat (limited to 'app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service')
-rw-r--r--app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
new file mode 100644
index 00000000..35f9ce24
--- /dev/null
+++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=VirtualBox Guest Additions
+ConditionVirtualization=oracle
+Before=display-manager.service
+
+[Service]
+Type=simple
+ExecStartPre=/sbin/modprobe vboxguest
+ExecStartPre=/sbin/modprobe vboxsf
+ExecStart=/usr/sbin/vboxguest-service --foreground
+ExecStopPost=/sbin/modprobe -r vboxsf
+ExecStopPost=/sbin/modprobe -r vboxguest
+PIDFile=/var/run/vboxguest-service.pid
+
+[Install]
+WantedBy=multi-user.target