Am 21.05.2015 um 00:40 schrieb Patrick Schleizer:
> Hi!
> 
> Can one somehow distinguish if,
> 
>     a) the daemon was started during boot or,
>     b) (re)started by an apt-get install or upgrade?
> 
> Can this be distinguished from within the daemon itself?

Not afaik.

> The use case is here to have script that is run by systemd
> 'Type=oneshot' only run on boot. Not during apt-get install or upgrades.

See man dh_systemd_start/dh_installinit. In your case, you probably want
the "--no-start" switch.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to