Hello, freeradius-users. Patch for radiusd.sh #!/bin/sh # PROVIDE: radiusd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON +# REQUIRE: NETWORKING SERVERS mysql # KEYWORD: shutdown radiusd must start after DBServers(mysql) do because of some problems with some rlm_sql* modules (rlm_nibs - can't connect to MySQL) so I have added # REQUIRE: NETWORKING SERVERS mysql adding mysql is case for loop dependency of 'rcorder' so I have removed -# BEFORE: DAEMON Does any have such problems? -- KES mailto:kes-kes@yandex.ru
On Fri 18 Aug 2006 13:08, KES wrote:
Hello, freeradius-users.
Patch for radiusd.sh
#!/bin/sh
# PROVIDE: radiusd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON +# REQUIRE: NETWORKING SERVERS mysql # KEYWORD: shutdown
radiusd must start after DBServers(mysql) do because of some problems with some rlm_sql* modules (rlm_nibs - can't connect to MySQL)
so I have added # REQUIRE: NETWORKING SERVERS mysql
adding mysql is case for loop dependency of 'rcorder' so I have removed -# BEFORE: DAEMON
Does any have such problems?
Yes. This is in-fact incorrect as it will force people who are not using mysql to start it. The correct thing to do is simply add the line: # Should-Start: $time postgresql mysql ldap -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Fri, Aug 18, 2006 at 03:07:11PM +0300, Peter Nixon said:
On Fri 18 Aug 2006 13:08, KES wrote:
Hello, freeradius-users.
Patch for radiusd.sh
#!/bin/sh
# PROVIDE: radiusd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON +# REQUIRE: NETWORKING SERVERS mysql # KEYWORD: shutdown
radiusd must start after DBServers(mysql) do because of some problems with some rlm_sql* modules (rlm_nibs - can't connect to MySQL)
so I have added # REQUIRE: NETWORKING SERVERS mysql
adding mysql is case for loop dependency of 'rcorder' so I have removed -# BEFORE: DAEMON
Does any have such problems?
Yes. This is in-fact incorrect as it will force people who are not using mysql to start it. The correct thing to do is simply add the line:
# Should-Start: $time postgresql mysql ldap
I've been meaning to send this along. We've just put this in the debian init script: ### BEGIN INIT INFO # Provides: radiusd # Required-Start: $network # Should-Start: mysql ldap postgresql samba krb5-kdc # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO Adding $time seems like a good thing, so I've added it here as well. The Default-Start and Default-Stop targets may be different on other distros, so merge those as needs be. -- -------------------------------------------------------------------------- | Stephen Gran | FORTRAN is a good example of a language | | steve@lobefin.net | which is easier to parse using ad hoc | | http://www.lobefin.net/~steve | techniques. -- D. Gries [What's | | | good about it? Ed.] | --------------------------------------------------------------------------
On Fri 18 Aug 2006 15:56, Stephen Gran wrote:
On Fri, Aug 18, 2006 at 03:07:11PM +0300, Peter Nixon said:
On Fri 18 Aug 2006 13:08, KES wrote:
Hello, freeradius-users.
Patch for radiusd.sh
#!/bin/sh
# PROVIDE: radiusd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON +# REQUIRE: NETWORKING SERVERS mysql # KEYWORD: shutdown
radiusd must start after DBServers(mysql) do because of some problems with some rlm_sql* modules (rlm_nibs - can't connect to MySQL)
so I have added # REQUIRE: NETWORKING SERVERS mysql
adding mysql is case for loop dependency of 'rcorder' so I have removed -# BEFORE: DAEMON
Does any have such problems?
Yes. This is in-fact incorrect as it will force people who are not using mysql to start it. The correct thing to do is simply add the line:
# Should-Start: $time postgresql mysql ldap
I've been meaning to send this along. We've just put this in the debian init script:
### BEGIN INIT INFO # Provides: radiusd # Required-Start: $network # Should-Start: mysql ldap postgresql samba krb5-kdc # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO
Adding $time seems like a good thing, so I've added it here as well. The Default-Start and Default-Stop targets may be different on other distros, so merge those as needs be.
OK. I committed this to the debian startup script. -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Здравствуйте, Peter. Вы писали 18 августа 2006 г., 15:07:11: PN> On Fri 18 Aug 2006 13:08, KES wrote:
Hello, freeradius-users.
Patch for radiusd.sh
#!/bin/sh
# PROVIDE: radiusd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON +# REQUIRE: NETWORKING SERVERS mysql # KEYWORD: shutdown
radiusd must start after DBServers(mysql) do because of some problems with some rlm_sql* modules (rlm_nibs - can't connect to MySQL)
so I have added # REQUIRE: NETWORKING SERVERS mysql
adding mysql is case for loop dependency of 'rcorder' so I have removed -# BEFORE: DAEMON
Does any have such problems?
PN> Yes. This is in-fact incorrect as it will force people who are not using mysql PN> to start it. The correct thing to do is simply add the line: PN> # Should-Start: $time postgresql mysql ldap But I am using FreeBSD v6.1#2 and I have not such options I have only ``REQUIRE'' ``PROVIDE'', ``BEFORE'' and ``KEYWORD'' lines Any have a clue for FreeBSD? -- С уважением, KES mailto:kes-kes@yandex.ru
On Mon 21 Aug 2006 03:22, KES wrote:
Здравствуйте, Peter.
Вы писали 18 августа 2006 г., 15:07:11:
PN> On Fri 18 Aug 2006 13:08, KES wrote:
Hello, freeradius-users.
Patch for radiusd.sh
#!/bin/sh
# PROVIDE: radiusd -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON +# REQUIRE: NETWORKING SERVERS mysql # KEYWORD: shutdown
radiusd must start after DBServers(mysql) do because of some problems with some rlm_sql* modules (rlm_nibs - can't connect to MySQL)
so I have added # REQUIRE: NETWORKING SERVERS mysql
adding mysql is case for loop dependency of 'rcorder' so I have removed -# BEFORE: DAEMON
Does any have such problems?
PN> Yes. This is in-fact incorrect as it will force people who are not using mysql PN> to start it. The correct thing to do is simply add the line:
PN> # Should-Start: $time postgresql mysql ldap
But I am using FreeBSD v6.1#2 and I have not such options I have only ``REQUIRE'' ``PROVIDE'', ``BEFORE'' and ``KEYWORD'' lines Any have a clue for FreeBSD?
Ahh. I was wondering why I could not find your "radiusd.sh" anywhere in the source... I suppose your solution is fine for you, as I dont have any better solution for FreeBSD. I have however committed my solution to the linux startup scripts in the source tree. Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
participants (3)
-
KES -
Peter Nixon -
Stephen Gran