Subject: Correct way to start a server as a user in rc.local?
To: NetBSD-help <netbsd-help@netbsd.org>
From: Clint \(cpctc\) <cpctc_cbw@hotmail.com>
List: netbsd-help
Date: 12/10/2001 07:33:18
I want to run a tcl server via rc.local.  When I'm at my shell prompt, I
start it with:

# /usr/pkg/bin/tclsh myserver.tcl

.. and it logs to stdout and /var/log/messages via 'logger'/syslog.

I want to have the thing start up at boot in rc.local, and for it to run as
user "myuser".

Because it logs to syslog, I'd like to redirect stdout and stderr to
/dev/null.

I'm sure there's a few ways to do this.. can anyone suggest the preferred
method?