Bug#813072: Remove broken ExecStopPost in vboxweb.service

Michael Biebl biebl at debian.org
Fri Jan 29 13:11:10 GMT 2016


Hi Gianfranco

Am 29.01.2016 um 12:09 schrieb Gianfranco Costamagna:
>> vboxweb.service contains the following:
>> ExecStopPost=/usr/bin/rm /run/vboxweb.pid

...

>> The fix is rather simple: Simply drop the ExecStopPost line.
>> As you can see in the documentation [¹], systemd will automatically
>> clean up stale pid files, so there is no need to do that manually.

...

>> Btw, it would be great if /etc/init.d/virtualbox would have an
>> equivalent systemd service file. Most of the script seems to be about
>> loading kernel modules. Maybe that can be dropped completely due to
>> kernel auto-loading or could be replaced by a simple
>> /usr/lib/modules-load.d/ snippet.
> 
> 
> here a service file would be so appreciated, it is a difficult task for
> me, even if I already did many of them, but virtualbox is a little bit scary
> 
> I could try this one
> https://github.com/rpmfusion/VirtualBox/blob/master/vboxservice.service
> 
> 
> But I'm wondering about how should I change the rules file to make it work correctly
> (because we need to install both, and I'm not sure about the changes)

If you have specific questions, please don't hesitate to poke us on the
pkg-systemd-maintainers at l.a.d.o mailing list.
Installing the .service files should be the least of your worries. I
would first start with actually creating a replacement .service file.
And for that, I would start investigating, what parts of the sysv init
script are actually still necessary today and if they can probably be
replaced by different mechanism, like say replacing the kernel module
loading with a module-load.d snippet [1].
The remaining part of the sysv init script afaic is then the ordered
shutdown of running vbox instances. This functionality could possibly
move into a separate shell script which you would simply call on shutdown.

Regards,
Michael

[1] man modules-load.d

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160129/6fe442e5/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list