Subject: Re: Correct way to start a server as a user in rc.local?
To: Laine Stump <lainestump@rcn.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 12/10/2001 18:53:36
On Mon, Dec 10, 2001 at 12:48:19PM -0500, Laine Stump wrote:
> Another way of doing it would be to put an entry in "myuser"'s crontab:
> 
>   @reboot /usr/pkg/bin/tclsh myserver.tcl >/dev/null 2>&1
> 
> (don't forget the path for myserver.tcl ;-)
> 
> If it is a server that really is managed by an actual user named
> "myuser", this will give them control over reconfiguring it, rather
> than needing to bother the sysadmin every time they want to change a
> commandline option or something.
> 
> The downside of this is that you can't really control the exact timing
> of when it will startup - it will happen sometime shortly after cron
> starts.

And if, for any reason, you need to restart cron, it will start a second
instance of the program.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--