Re: Reload simple

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
Tel: +49 30 8413 1433



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux