From owner-freebsd-questions Sat Mar 2 10: 0:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by hub.freebsd.org (Postfix) with ESMTP id 617A837B419 for ; Sat, 2 Mar 2002 10:00:12 -0800 (PST) Received: from heinz by smtp.hccnet.nl via uds58-45.dial.hccnet.nl [62.251.45.58] with SMTP id TAA28681 (8.8.8/1.13); Sat, 2 Mar 2002 19:00:00 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: "rachel" , Subject: Re: /etc/rc.local Date: Sat, 2 Mar 2002 19:53:46 +0100 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <02030219534608.03516@heinz> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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