[systemd-devel] Reload simple

Andy Pieters systemd at andypieters.me.uk
Fri Oct 27 12:39:28 UTC 2023


On Fri, 27 Oct 2023 at 13:31, Ferenc Wágner <wferi at niif.hu> wrote:

> Andy Pieters <systemd at andypieters.me.uk> writes:
>
> > Is there a good way to send a usr1 signal upon reload of a service
> > with type=simple?
> >
> Use $MAINPID as per man systemd.service:
>
>         ExecReload=kill -HUP $MAINPID
>
>
I had actually misunderstood that part. I thought that was only available
with type=fokring

Tested this in my sample service and it works.

Very happy with this

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20231027/bb088f6c/attachment.htm>


More information about the systemd-devel mailing list