[COLUG] Linux Startup Sequence
Tom Hanlon
tom at functionalmedia.com
Fri Mar 21 11:20:49 EST 2008
On 21 Mar 2008, at 06:54, Rick Troth wrote:
> I always forget which Linux standards come from the LSB
> and which come from the FHS, but for INIT scripts there is
> a programmatic way to get them sequenced right. You want for
> Postgres to start after "network". And it might be wired that way
> since in your case it is a VMware-specific address you want.
>
> Look at the INIT script for Postgres.
> See where it requires other components.
> See if you can modify it to also require VMware networking.
> Then do something like ...
>
> chkconfig postgres off
> chkconfig postgres on
>
Make sure that the postgres init script plays nice with chkconfig..
Debian also has a tool for manipulating init scripts... Was it
updaterc (?)
I believe chkconfig looks for a few lines of comments in the
beginning of a file.
Do _not_ uncomment them, just make sure they are there.
I am sure there are differing opinions on the logic of having
significant meaning in a comment. I always thought it to be a strange
arrangement.
--
Tom
> to force the INIT infrastructure to sequence that run level correctly.
>
> -- R; <><
>
>
> On Wed, 19 Mar 2008, Mark Erbaugh wrote:
>
>> I need some help understanding the startup sequence, when things are
>> loaded.
>>
>> I'm running Ubuntu Dapper (6.06). I have Postgresql 8.1 installed to
>> startup when the system is started. I also have VMware server set to
>> start. I have Postgres configured to listen on one of the virtual
>> networks that VMware creates (192.168.168.1)
>>
>> Postgres is refusing to listen to that port unless I restart it after
>> the system is running. The Postgres log indicates that it can't
>> create a
>> listen socket on that address. I assume that that is because the
>> network has not been created when Postgres is trying to start. I
>> looked
>> in the various etc/rcX.d directories. The start command for Postgres
>> was S20postgresql-8.1, the start command for VMWare was S90vmware.
>>
>>> From what I understand that means the Postgres would start first. I
>> renamed the S20postgresql-8.1 to S91postgresql-8.1. I thought that
>> would make it start after VMware, but I still have to manually
>> restart
>> Postgres to get it work on 192.168.168.1
>>
>> Here are the relevant files from my /etc/rc2.d directory:
>>
>> K08vmware
>> S90vmware
>> S91postgresql-8.1
>>
>> There are no entries for either VMware or Postgresql in /etc/rcS.d
>>
>> runlevel returns N 2, which I think means my Ubuntu boots directly to
>> runlevel 2
>>
>> Can someone explain it to me? Is there any way I can figure out what
>> script is actually staring Postgres?
>>
>> Also, I notice that other distros tend to use a different runlevel
>> for
>> the multi-user GUI. Is that just a convention or do the different
>> runlevels have different meanings?
>>
>> Thanks,
>> Mark
>>
>> _______________________________________________
>> colug432 mailing list colug432 at colug.net
>> http://www.colug.net/mailman/listinfo/colug432
>>
> _______________________________________________
> colug432 mailing list colug432 at colug.net
> http://www.colug.net/mailman/listinfo/colug432
More information about the colug432
mailing list