Re: [systemd-devel] Reload simple

2023-10-27 Thread Ferenc Wágner
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

Re: [systemd-devel] Reload simple

2023-10-27 Thread Andy Pieters
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

Re: [systemd-devel] Reload simple

2023-10-27 Thread Donald Buczek
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)

Re: [systemd-devel] Reload simple

2023-10-27 Thread Andrei Borzenkov
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 ..

[systemd-devel] Reload simple

2023-10-27 Thread Andy Pieters
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