Bug#934166: Please add lintian warning for systemd system services using default.target
Michael Biebl
biebl at debian.org
Thu Aug 8 10:05:32 BST 2019
Am 07.08.19 um 18:22 schrieb Michael Biebl:
> Package: lintian
> Version: 2.17.0
> Severity: wishlist
>
> Hi,
>
> I noticed a couple of systemd system services
> (files that match /lib/systemd/system/*.{service,socket,...})
> that use
>
> [Install]
> Alias=default.target
>
>
> default.target is only an alias and should not be used for that.
> Instead services should either hook into multi-user.target (for the vast
> majority this is the right choice) or graphical.target.
>
> It would be a good idea if lintian would add a warning for this.
>
I did an archive-wide scan and I found the following services currently
doing this:
> bootchart2/bootchart.service:WantedBy=default.target
> e2fsprogs/e2scrub_reap.service:WantedBy=default.target
> gamemode/gamemoded.service:WantedBy=default.target
> haveged/haveged.service:WantedBy=default.target
> python-pyres/pyres_manager at .service:WantedBy=default.target
> python-pyres/pyres_scheduler at .service:WantedBy=default.target
> python-pyres/pyres_worker at .service:WantedBy=default.target
> python-remotecv/remotecv.service:WantedBy=default.target
> sec/sec.service:WantedBy=default.target
> thumbor/thumbor.service:WantedBy=default.target
> udevil/devmon at .service:WantedBy=default.target
> watchdog/watchdog.service:WantedBy=default.target
Not too many currently, and I could just file bug reports for them. But
it seems better to check for this automatically.
Regards,
Michael
--
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: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190808/7c20cb98/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list