I tried changing the following line in /etc/rc.d/rc.subr but the
actual timeout remains 30 sec (from 'time').
> [ -z "${daemon_timeout}" ] && daemon_timeout=600

Le jeu. 23 avr. 2020 à 14:28, Thomas de Grivel <billi...@gmail.com> a écrit :
>
> Le jeu. 23 avr. 2020 à 13:57, Antoine Jacoutot <ajacou...@bsdfrog.org> a 
> écrit :
> >
> > On Thu, Apr 23, 2020 at 12:18:40PM +0100, Raf Czlonka wrote:
> > > On Thu, Apr 23, 2020 at 12:00:59PM BST, Thomas de Grivel wrote:
> > > > Hello,
> > > >
> > > > I have some trouble starting up a daemon on OpenBSD 6.6 stable using rc 
> > > > :
> > > >
> > > > in /etc/rc.d/my_daemon :
> > > >
> > > > > #!/bin/ksh
> > > > >
> > > > > daemon="/home/my-user/start"
> > > > > daemon_user=my-user
> > > > > daemon_timeout=600
> > > > >
> > > > > . /etc/rc.d/rc.subr
> > > > >
> > > > > echo "daemon_timeout ${daemon_timeout}"
> > > > > rc_cmd $1
> > > >
> > > > Then I run the following command :
> > > >
> > > > > # time /etc/rc.d/my_daemon
> > > > > daemon_timeout 600
> > > > > seuldanslenoir_staging(timeout)
> > > > >     0m30.54s real     0m00.04s user     0m00.05s system
> > > >
> > > > So the actual timeout is still 30 seconds which is the default in
> > > > /etc/rc.d/rc.subr
> > > >
> > > > What did I do wrong ?
> > >
> > > Order - move the source ('.) line to the top.
> >
> > Hmm no, don't do that.
> >
> > What is the output of 'rcctl get my_daemon timeout'
>
> I did not change anything.
>
> 'rcctl get my_daemon timout' returns 600 as expected.
>
>
> --
>  Thomas de Grivel
>  kmx.io



-- 
 Thomas de Grivel
 kmx.io

Reply via email to