VMware Workstation 10 systemd Server service /etc/systemd/system/vmware-workstation-server.service 

app-emulation/vmware-workstation 10.0.2.1744117

app-emulation/vmware-modules 279.2

antec ~ # uname -a
Linux antec 3.14.1-gentoo-phenomx4-2014-04-17 #1 SMP Fri Apr 18 09:28:39 CEST 2014 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux

modules patch found in 

antec ~ # cat /etc/systemd/system/vmware-workstation-server.service
[Unit]
Description=VMware Workstation Server
Wants=vmware-authentication.service
Wants=vmware.target


[Service]
Type=simple
PIDFile=/var/run/vmware/vmware-hostd.PID
#ExecStartPre=/opt/vmware/sbin/vmware-authdlauncher
ExecStart=/opt/vmware/bin/vmware-hostd -a -d /etc/vmware/hostd/config.xml

Restart=on-abort


[Install]
WantedBy=multi-user.target
antec ~ # cat /etc/systemd/system/vmware-authentication.service    
[Unit]
Description=VMware Authentication Daemon
After=vmware-vmnet.service
PartOf=vmware.target

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/opt/vmware/sbin/vmware-authdlauncher


==================================
NOTE1

The shutdown procedure does not work, because of missing
vmware-vim-cmd



local HOHO_ADMIN="$(/opt/vmware/bin/vmware-wssc-adminTool "/etc/vmware/hostd/authorization.xml" 2>/dev/null)"

if [ "x" != "x${HOHO_ADMIN}" ]; then
    /opt/vmware/bin/vmware-vim-cmd -U "${HOHO_ADMIN}" hostsvc/autostartmanager/autostop
fi

NOTE2 the provided /usr/lib/systemd/system/vmware-authentication.service has a wrong path /usr/sbin/vmware-authdlauncher

antec ~ # cat /etc/systemd/system/vmware-authentication.service
[Unit]
Description=VMware Authentication Daemon
After=vmware-vmnet.service
PartOf=vmware.target

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/opt/vmware/sbin/vmware-authdlauncher

antec ~ # cat /usr/lib/systemd/system/vmware-authentication.service
[Unit]
Description=VMware Authentication Daemon
After=vmware-vmnet.service
PartOf=vmware.target

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/usr/sbin/vmware-authdlauncher
antec ~ # 

Identical approach found in

Comments

Popular posts from this blog

sudo sh VMware-Remote-Console-12.0.4-21740317.x86_64.bundle -u vmware-vmrc

zabbix agent on gentoo

Zabbix Server on Arch Linux