[systemd-devel] Is there a way to see if a script is run from systemd
Reindl Harald
h.reindl at thelounge.net
Sun May 8 11:05:34 UTC 2016
Am 07.05.2016 um 15:00 schrieb Cecil Westerhof:
> I have written a Bash script to be used for a service. Is it possible to
> see in the script if it is run from systemd? I could use this for
> debugging purposes
just set a environment variable in the systemd unit or check against a
lot of env-vars missing which are there in a ordinary shell but removed
from systemd to start with a clean anvironement
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160508/0cb9167c/attachment.sig>
More information about the systemd-devel
mailing list