Mismatch between vboxweb.service systemd file and startup script causes unit to fail

Bug #1904123 reported by Sam Van den Eynde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The systemd file that was shipped in focal contains:

...
[Service]
Type=forking
ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start
PIDFile=/run/vboxweb.pid
...

But the script that it calls uses a different file for PID:

cat /usr/lib/virtualbox/vboxweb-service.sh:

...
SCRIPTNAME=vboxweb-service.sh
...
PIDFILE="/var/run/${SCRIPTNAME}"
...

Which causes the unit to fail on my system.

I think the script is wrong but since I find it easier to track I fixed this by copying the systemd unit to /etc and changing it there.

cat /etc/systemd/system/vboxweb.service:

[Unit]
Description=VirtualBox Web Service
After=network.target

[Service]
Type=forking
ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start
PIDFile=/run/vboxweb-service.sh

[Install]
WantedBy=multi-user.target

Which works fine after doing a systemctl daemon-reload.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: virtualbox 6.1.10-dfsg-1~ubuntu1.20.04.1
ProcVersionSignature: Ubuntu 5.4.0-53.59-lowlatency 5.4.65
Uname: Linux 5.4.0-53-lowlatency x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.11
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 13 09:15:47 2020
SourcePackage: virtualbox
UpgradeStatus: Upgraded to focal on 2020-05-07 (189 days ago)
mtime.conffile..etc.default.virtualbox: 2020-07-18T01:32:05.356307

Revision history for this message
Sam Van den Eynde (samvde) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

lovely thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtualbox - 6.1.16-dfsg-4

---------------
virtualbox (6.1.16-dfsg-4) unstable; urgency=medium

  [ Sam Van den Eynde ]
  * Fix vboxweb.service startup script, from Sam Van den Eynde (LP: #1904123, LP: #1825598)
  * Now the script also sources /etc/vbox/vbox.cfg that can contain all the
    required variables.

 -- Gianfranco Costamagna <email address hidden> Mon, 16 Nov 2020 14:12:27 +0100

Changed in virtualbox (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.