[systemd-devel] systemctl --user user can't restart their own service?

Michael Chapman mike at very.puzzling.org
Fri Nov 17 23:16:46 UTC 2017


On Sat, 18 Nov 2017, Jeff Solomon wrote:
> Hi,
>
> Is it by-design that a user can't restart their own user service?

If they aren't a lingering user, they'll get a new systemd instance if 
they completely log out and back in again.

Alternatively, they can restart the running instance with:

   systemctl --user daemon-reexec

This serializes state across the re-execution, so services running in the 
instance are not killed.

There's few reasons a user might want to do this however. The only one I 
can think of is where the admin had updated the systemd package and the 
user wanted to make use of it immediately.


More information about the systemd-devel mailing list