You are not logged in.
Hello everybody,
I have configured vboxweb following the wiki.
This is the vboxweb_mod.service file I currently have:
[Unit]
Description=VirtualBox Web Service
After=network.target
[Service]
Type=forking
PIDFile=/run/vboxweb.pid
ExecStart=/usr/bin/vboxwebsrv --pidfile /run/vboxweb/vboxweb.pid --background
User=vbox
Group=vboxusers
[Install]
WantedBy=multi-user.targetWhen I perform the following command:
systemctl start vboxweb_modI get the following result:
vboxweb_mod.service - VirtualBox Web Service
Loaded: loaded (/etc/systemd/system/vboxweb_mod.service; disabled; vendor preset: disabled)
Active: failed (Result: timeout) since Fri 2018-02-02 15:54:41 -02; 2min 47s ago
Process: 8493 ExecStart=/usr/bin/vboxwebsrv --pidfile /run/vboxweb/vboxweb.pid --background (code=exited, sta
fev 02 15:53:06 lux-server vboxwebsrv[8493]: 00:00:00.000174 main DMI Product Name: ProLiant ML350 G5
fev 02 15:53:06 lux-server vboxwebsrv[8493]: 00:00:00.000188 main DMI Product Version:
fev 02 15:53:06 lux-server vboxwebsrv[8493]: 00:00:00.000248 main Host RAM: 7978MB (7.7GB) total, 7702MB (7
fev 02 15:53:06 lux-server vboxwebsrv[8493]: 00:00:00.000253 main Executable: /usr/lib/virtualbox/vboxwebsr
fev 02 15:53:06 lux-server vboxwebsrv[8493]: 00:00:00.000254 main Process ID: 8493
fev 02 15:53:06 lux-server vboxwebsrv[8493]: 00:00:00.000255 main Package type: LINUX_64BITS_GENERIC (OSE)
fev 02 15:53:06 lux-server systemd[1]: vboxweb_mod.service: PID file /run/vboxweb.pid not readable (yet?) after
fev 02 15:54:36 lux-server systemd[1]: vboxweb_mod.service: Start operation timed out. Terminating.
fev 02 15:54:41 lux-server systemd[1]: vboxweb_mod.service: Failed with result 'timeout'.
fev 02 15:54:41 lux-server systemd[1]: Failed to start VirtualBox Web Service.If I switch user to vbox and run the command manually:
/usr/bin/vboxwebsrv --pidfile /run/vboxweb/vboxweb.pid --backgroundIt works. Does anybody know why is systemd getting a timeout while the command above works?
Thanks in advance
Last edited by mylux (2018-02-04 23:59:12)
Offline
There appears to be a slight discrepancy here:
PIDFile=/run/vboxweb.pid
ExecStart=/usr/bin/vboxwebsrv --pidfile /run/vboxweb/vboxweb.pid --backgroundOffline
Thank you so much, robg!
A stupid and very slight detail that makes the whole difference
It is working now
Offline