Run script on boot, as ordinary user
Christian Laursen
xi at borderworlds.dk
Thu May 7 18:23:52 UTC 2009
Nerius Landys wrote:
> So there's cron. Is there anything that lets an ordinary user start
> his/her programs at bootup of the system? And then run a script when
> the system is shutting down? I'm familiar with /etc/rc.d/, but that's
> not really what I'm looking for. I gave my friends access to my
> FreeBSD server and I want to let them start for example Apache and/or
> MySQL on higher ports running as their own user.
Starting something at boot is easy enough. The user can just add a line
like this to his/her crontab:
@reboot /path/to/command
At shutdown is not possible via cron though.
--
Christian Laursen
More information about the freebsd-questions
mailing list