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

Re: restarting systemd user services on upgrade



On Mon, Nov 9, 2020 at 12:42 AM Norbert Preining wrote:

> (please cc, I am not subscribed)

Done

> is there a way to restart service@<username> services after the package
> upgrade?

These are not "

systemd user services" as described in your email subject, they are
per-user instances of systemd system services. Looking at the tor
package, it seems you need a onedrive.service in addition to
onedrive@.service. OTOH, some web searching seems to indicate a
onedrive.target is what is needed for controlling multiple instances.
Probably it would be best to consult the systemd upstream community
about this.


PS: if you were talking about systemd user services (which run as the
user rather than root and are shut down after the user's last session
is closed, unless lingering is enabled for the user), then I would
suggest looking at needrestart & needrestart-session.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: