Date: Sun, 10 Sep 2006 22:07:38 +0000 From: Duane Hill <d.hill@yournetplus.com> To: White Hat <pigskin_referee@yahoo.com> Cc: FreeBSD Users Questions <freebsd-questions@freebsd.org> Subject: Re: Making startup order static Message-ID: <1726681987.20060910220738@yournetplus.com> In-Reply-To: <20060910214613.29469.qmail@web34407.mail.mud.yahoo.com> References: <1405126802.20060910192630@yournetplus.com> <20060910214613.29469.qmail@web34407.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, September 10, 2006 at 9:46:13 PM, White confabulated: > --- Duane Hill <d.hill@yournetplus.com> wrote: > [...] > >> I also had the same scenario with order in startup. >> That was rectified >> by setting up one script to start each of the items >> in order. > I am assuming that you removed the scripts that you > called from the rc.d directory. What transpired when > you updated a program? Assuming it created a file in > rc.d, you then had to manually remove it correct? No. I believe I used the startup script for sa-spamd as a starting point. I'm sure others could be used as a starting point as well. I'm still in the learning process. That way I could remove the ones from the rc.conf that I wanted to start in order and use the 'force' option when loading them from the custom startup script. So, as an example, if you do not have a 'spamd="YES"' in the rc.conf and you attempt to start spamd from the console, it will not start. That is because of the sa-spamd startup script. If you attempt to start spamd from the console and supply 'force start', it will start. Therefore, in my startup script I left it out of the rc.conf and used the 'force start' in my custom startup script. > I am thinking that I could create a script that would > check to see if a file existed in rc.d that I had > chosen to start manually and if so it would then > delete or move the file. However, I would have to > ensure that, that script started prior to any other > script. > It really should not be this difficult. A master file > dictating the start order of every script in rc.d > would be a cool idea. -- "This message was sent using 100% recycled electrons."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1726681987.20060910220738>