Date: Fri, 13 Feb 2004 20:44:08 -0500 From: Chuck Swiger <cswiger@mac.com> To: freebsd-questions@FreeBSD.org Subject: Re: startup daemon as unpriviliged user Message-ID: <402D7D68.9030303@mac.com> In-Reply-To: <20040214004739.GD650@keyslapper.org> References: <20040214004739.GD650@keyslapper.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Louis LeBlanc wrote:
> So, how can I get a process to run automatically on startup for an
> unprivileged user?
It's reasonable to create a fetchmail.sh script in /usr/local/etc/rc.d which
does something like:
#!/bin/sh
USER = me
COMMAND = /usr/local/bin/fetchmail...
su - ${USER} -c ${COMMAND}
In this case, however, you might want to invoke it from a per-user cron script
eievery hour or so instead...
--
-Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?402D7D68.9030303>
