Remove old vmware services. Switch to new vmware services

This commit is contained in:
RealStickman 2022-02-27 15:11:53 +01:00
parent b6fd4a4644
commit 34f17e467a
4 changed files with 14 additions and 40 deletions

View File

@ -1,13 +0,0 @@
[Unit]
Description=VMware Networks
Wants=vmware-networks-configuration.service
After=vmware-networks-configuration.service
[Service]
Type=forking
ExecStartPre=-/sbin/modprobe vmnet
ExecStart=/usr/bin/vmware-networks --start
ExecStop=/usr/bin/vmware-networks --stop
[Install]
WantedBy=multi-user.target

View File

@ -1,12 +0,0 @@
[Unit]
Description=VMware USB Arbitrator
Requires=vmware.service
After=vmware.service
[Service]
ExecStart=/usr/bin/vmware-usbarbitrator
ExecStop=/usr/bin/vmware-usbarbitrator --kill
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@ -1,14 +0,0 @@
[Unit]
Description=VMware daemon
Requires=vmware-usbarbitrator.service
Before=vmware-usbarbitrator.service
After=network.target
[Service]
ExecStart=/etc/init.d/vmware start
ExecStop=/etc/init.d/vmware stop
PIDFile=/var/lock/subsys/vmware
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@ -334,7 +334,20 @@ EOF
# set systemd services for vmware (only if installed) # set systemd services for vmware (only if installed)
if [[ $(pacman -Q | grep vmware-workstation) ]]; then if [[ $(pacman -Q | grep vmware-workstation) ]]; then
sudo systemctl enable --now vmware-networks-server.service || echo "Service failed, continuing" sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing"
sudo systemctl enable --now vmware-usbarbitrator.service || echo "Service failed, continuing"
fi
# NOTE temporary
# remove old vmware services
if [ -f "/etc/systemd/system/vmware.service" ]; then
sudo rm "/etc/systemd/system/vmware.service"
fi
if [ -f "/etc/systemd/system/vmware-networks-server.service" ]; then
sudo rm "/etc/systemd/system/vmware-networks-server.service"
fi
if [ -f "/etc/systemd/system/vmware-usbarbitrator.service" ]; then
sudo rm "/etc/systemd/system/vmware-usbarbitrator.service"
fi fi
# enable fstrim timer # enable fstrim timer