chaos / powerman

cluster power control
GNU General Public License v2.0
43 stars 19 forks source link

powerman.sevice refers to deprecated, now-useless syslog.target #203

Closed hosiet closed 1 month ago

hosiet commented 1 month ago

https://github.com/chaos/powerman/blob/0badded46d2cabdc94d1da9a94e883d086bd3c04/etc/powerman.service.in#L2-L3

syslog.target, which was removed in systemd v198 [1]. It should be safe to remove this as systemd will ensure logging is available before a service is started [2]. Future modules referencing syslog.target should be avoided.

Similar issue: https://github.com/NixOS/nixpkgs/issues/149721

-> % lintian-explain-tags systemd-service-file-refers-to-obsolete-target
N:
W: systemd-service-file-refers-to-obsolete-target
N:
N:   The systemd service file refers to an obsolete target.
N:
N:   Some targets are obsolete by now, e.g. syslog.target or dbus.target. For example, declaring After=syslog.target is
N:   unnecessary by now because syslog is socket-activated and will therefore be started when needed.