Andy Pieters writes:
> 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.
Use $MAINPID as per man systemd.service:
ExecReload=
Co
On Fri, 27 Oct 2023 at 13:31, Ferenc Wágner wrote:
> Andy Pieters 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
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)
On Fri, Oct 27, 2023 at 2:07 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.
>
systemctl kill ..
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.
Thanks