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. R. > Is this a known issue ? I could not find an > evident answer to this problem looking at /etc/rc.d/rc.subr > > -- > Thomas de Grivel > kmx.io >