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

Restarting systemd user units on package upgrade



Hello,

The tag2upload signing oracle is installed on the DSA host that has the
signing YubiKey by dgit-infrastructure.deb, and the daemon is started by
a role user as a systemd user unit.

We would like the postinst for dgit-infrastructure.deb to restart any
running instances of the Oracle daemon it finds on the host.
In practice there will only ever be one, but with it being a user unit,
the postinst will have to search for user instances of systemd and see
if they are running the service, then cause them to restart it.

Has anyone implemented something like this already?  Does anyone have
any tips on how to achieve it?  How would you search for user instances
of systemd that might be running services?

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: