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'

-- 
Antoine

Reply via email to