[systemd-devel] Reload simple
Donald Buczek
buczek at molgen.mpg.de
Fri Oct 27 12:29:07 UTC 2023
Hi, Andy,
On 10/27/23 1:06 PM, Andy Pieters wrote:
> Hi
>
> Is there a good way to send a usr1 signal upon reload of a service with type=simple?
>
> I don't really want to do KILL USR1 $(pidof process) as that could pull other processes with similar names / instances.
systemd.service(5)
[...]
ExecReload=
[...]
One additional, special environment variable is set: if known,
$MAINPID is set to the main process of the daemon, and may be
used for command lines like the following:
/bin/kill -HUP $MAINPID
Am I missing something?
Best
Donald
>
> Thanks
--
Donald Buczek
buczek at molgen.mpg.de
Tel: +49 30 8413 1433
More information about the systemd-devel
mailing list