save custom systemd service
This commit is contained in:
parent
6de634d623
commit
0cc6d03a8c
1 changed files with 19 additions and 0 deletions
19
usr/lib/systemd/system/vboxdrv-modules.service
Normal file
19
usr/lib/systemd/system/vboxdrv-modules.service
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=VirtualBox Linux kernel module
|
||||
ConditionVirtualization=!container
|
||||
DefaultDependencies=no
|
||||
Before=systemd-modules-load.service
|
||||
After=systemd-udevd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/sbin/modprobe vboxdrv
|
||||
ExecStart=/sbin/modprobe vboxnetflt
|
||||
ExecStart=/sbin/modprobe vboxnetadp
|
||||
ExecStop=/sbin/rmmod vboxnetflt
|
||||
ExecStop=/sbin/rmmod vboxnetadp
|
||||
ExecStop=/sbin/rmmod vboxdrv
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue