Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2009 20:51:06 +0200
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Cc:        Nerius Landys <nlandys@gmail.com>
Subject:   Re: Run script on boot, as ordinary user
Message-ID:  <200905072051.06511.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <560f92640905071057v7d298a68l680182144cc8898f@mail.gmail.com>
References:  <560f92640905071057v7d298a68l680182144cc8898f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 07 May 2009 19:57:03 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.

You sure? You can simply write an rc.d script that iterates through 
/home/*/rc.d/* and invokes each enabled script in there as the user, using su 
or sudo.
This will cleanly shutdown stuff for them.

Whether they *should* be running their own instances is an entirely different 
question. VirtualHost can do a lot and with mod_vhost_alias you simplify the 
maintenance, while maintaining several instances complicates it.
--
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905072051.06511.mel.flynn%2Bfbsd.questions>