Re: how to specify pid file ? (for newsyslog)

2018-02-15 Thread Илья Шипицин
thanks!

2018-02-15 15:58 GMT+05:00 Jan Maria Matejka :

> On 02/15/2018 06:56 AM, Илья Шипицин wrote:
> > hi,
> >
> > on freebsd I need to specify pid file in order to send a signal to
> rotate log:
> >
> > /etc/newsyslog.conf:
> >
> > /var/log/bird.log   600  7 100  @0101T JC
> /var/run/bird.pid SIGHUP
> > ...
> >
> >
> > is there a way to write a pid to file ? I haven't found any
>
> $ bird --help
> Usage: bird [--version] [--help] [-c ] [OPTIONS]
>
> Options:
>   ...
>   -P Create a PID file with given filename
>   ...
>
> Maria
>


Re: how to specify pid file ? (for newsyslog)

2018-02-15 Thread Jan Maria Matejka
On 02/15/2018 06:56 AM, Илья Шипицин wrote:
> hi,
> 
> on freebsd I need to specify pid file in order to send a signal to rotate log:
> 
> /etc/newsyslog.conf:
> 
> /var/log/bird.log   600  7 100  @0101T JC  
> /var/run/bird.pid SIGHUP
> ...
> 
> 
> is there a way to write a pid to file ? I haven't found any

$ bird --help
Usage: bird [--version] [--help] [-c ] [OPTIONS]

Options:
  ...
  -P Create a PID file with given filename
  ...

Maria


how to specify pid file ? (for newsyslog)

2018-02-14 Thread Илья Шипицин
hi,

on freebsd I need to specify pid file in order to send a signal to rotate
log:

/etc/newsyslog.conf:

/var/log/bird.log   600  7 100  @0101T JC
/var/run/bird.pid SIGHUP
...


is there a way to write a pid to file ? I haven't found any

Cheers,
Ilya Shipitsin