On 31/3/09 02:46, "Tseveendorj" <tseveend...@gmail.com> wrote:

> John Hawkes-Reed wrote:

[ ... ]

> Hi John
>
> Thank you for trying to help me.
>
> It has but I didn't know this is exactly right. Something looks like
> following
>
>
> inside /usr/local/etc/rc.d/mysql-server
>
> # PROVIDE: mysql
> # REQUIRE: LOGIN
> # KEYWORD: shutdown
>
>
> inside /usr/local/etc/rc.d/radiusd
>
> # PROVIDE: radiusd
> # REQUIRE: NETWORKING SERVERS mysql
> # KEYWORD: shutdown
>
> In my opinion the MySQL starts after LOGIN process then radiusd is
> starting when the mysql started.
>
> But it doesn't.

Hm. Bother.

>From 'man 8 rc':

Certain scripts may want to provide enhanced functionality.  The user may
access this functionality through additional commands.  The script may
list and define as many commands at it needs.

#!/bin/sh
#

# PROVIDE: foo
# REQUIRE: bar_service_required_to_precede_foo
# BEFORE:  baz_service_requiring_foo_to_precede_it

So I guess try a 'BEFORE: radiusd' in the mysql rc file.

After that, I'd be debugging the script start order by hand.

[ ... ]

--
John Hawkes-Reed
Systems Administrator. Future Publishing. x 2526

-- 
Future Publishing Limited (registered company number 2008885) and Future 
Publishing (Overseas) Limited (registered company number 06202940) are wholly 
owned subsidiaries of Future plc (registered company number 3757874). Future 
Publishing Limited, Future Publishing (Overseas) Limited and Future plc are all 
incorporated in England and Wales and share the same registered address at 
Beauford Court, 30 Monmouth Street, Bath BA1 2BW.

This email and any files transmitted with it are confidential. If you have 
received this email in error please notify the sender and then delete it 
immediately. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of Future.

The recipient should check this email and any attachments for the presence of 
viruses. Future accepts no liability for any damage caused by any virus 
transmitted by this email.

Future may regularly and randomly monitor outgoing and incoming emails 
(including the content of them) and other telecommunications on its email and 
telecommunications systems. By replying to this email you give your consent to 
such monitoring.

*****

Save resources: think before you print.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to