Date: Sat, 2 Mar 2002 19:53:46 +0100 From: Ernst de Haan <znerd@FreeBSD.org> To: "rachel" <listbox_8811@hotmail.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: /etc/rc.local Message-ID: <02030219534608.03516@heinz> In-Reply-To: <OE47kxERL3kxs4rxwVl0000e117@hotmail.com> References: <OE47kxERL3kxs4rxwVl0000e117@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Rachel, > I want to be able to run a command from /etc/rc.local as a specific user. > Is there a tool or script that will change ownership from root to another > user from that startup script? Tried su or sudo ? > Lastly is there a tool that will do this and also restart the process if it > dies? Dunno. You could do it yourself; catch the PID, store it in /var/run/ somewhere and run a different shell script every now and then through cron to see if it exists... Kind regards, Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02030219534608.03516>