Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2000 16:03:28 +1000
From:      Danny <dannyh@idx.com.au>
To:        "[ -dp- ]" <transmogrify@sympatico.ca>, questions@FreeBSD.ORG
Subject:   Re: Where do those startup scripts go?
Message-ID:  <00040216050502.00513@freebsd.freebsd.org>
References:  <38E4D250.4DFC76D4@sympatico.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

You don't have to touch the /etc/rc.conf file
to make up a start up script on FreeBSD you need to

cd /usr/local/etc/rc.d/
pico somesystemprogram.sh
Type in

#!/bin/sh
/someprogram/somesystemprogram

Then save the file 

Then chmod 755 somesystemprogram.sh

On Sat, 01 Apr 2000, [ -dp- ] wrote:
> good morning:
> 
> 	It has been said to _never_ place startup scripts in rc.conf, rc.local,
> etc, due to the fact
> that they are regularly parsed by other programs. Sounds fine, however
> isn't /usr/local/etc/rc.d referenced to 
> via rc.conf? And this being the case, we would assume that it will be
> parsed every time rc.conf is called? If rc.conf is called again during
> runtime, I am sure that it is called to with a variable so that the
> entire file is not parsed ? Please correct me if I am wrong, this came
> to me in a dream. I myslef have always referenced them from rc.conf
> since day one, and my machine has yet to blow up.
> 
> -- 
> [ - deadpoint - ]
> ============================================================================
> Don't underestimate the power of stupid people in large groups.
> 
> Email: dp@penix.org
> BIO: http://bling.dyn.dhs.org
> GPG Key fingerprint: 2D7C A7E2 DB1F EA5F 8C6F&nbsp; D5EC 3D39 F274 4AA3
> E8B9
> Public Key available here: http://bling.dyn.dhs.org/dp.asc
> ============================================================================
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
--



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?00040216050502.00513>