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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I already send this issue on the debian maintainers mailing list for
systemd, but i think now this where not the place to.

It seem to me that look like to be a regression between debian 8 and 9
specifically on systemd version (from 215 to 232), but maybe have I miss a
change in the release note ?

I experiment a different behaviour between the systemd version on jessieand
stretch.
I have tested this setup on a debian jessie (x86 and armhf) and on a
debianstretch (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.

Have I misunderstood the manual, miss a release note or is this a
regression ?

Thanks
Simon Tropée
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180531/2b3e1e70/attachment.html>


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux