Systemd target doesn't not anymore propagate "restart" to PartOf "services"

Simon Tropée simon.tropee at gmail.com
Tue May 29 10:54:04 BST 2018


Hello,

I'm not sur that I report the issue/bug on the correct mailing list, it's
look like to be a regression between debian 8 and 9 specifically on systemd
version.

I experiment a different behaviour between the systemd version on jessie
and stretch.
I have tested this setup on a debian jessie (x86 and armhf) and on a debian
stretch (x86 and armhf)
On jessie my version of systemd is 215 (from repository)
On stretch my version of systemd is 232 (from repository)


I have the following systemd target :

sample-services.target
[Unit]
Description=A Sample Services Target
Requires=multi-user.target
After=multi-user.target

[Install]
WantedBy=multi-user.target

=== EOF ===

And the following service :

sample-services1.service
[Unit]
Description=A Sample service
After=network.target remote-fs.target nss-lookup.target
PartOf=sample-services.target

[Service]
Type=simple
ExecStart=/bin/sh -c 'echo Hello'


[Install]
WantedBy=multi-user.target

=== EOF ===

On a Debian 8 system and according to systemd manual, issuing a "systemctl
restart" or "systemctl stop" on "sample-services.target" propagate action
on "PartOf" services.
I use and validate this behaviour on a Debian 8 x86 and armhf.

The propagation of the "restart" action is no longer working on debian 9
system (x86 and armhf). "stop" action is still propagate.

I couldn't find any information about this difference of behaviour on
systemd release note neither on the systemd debian bug tracker.

Should I submit a bug report to the debian bug tracker or post this issue
directly to the systemd bug tracker ?

Thanks
Simon Tropée
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180529/89cebbac/attachment.html>


More information about the Pkg-systemd-maintainers mailing list