Re: Load FR on boot with Ubuntu?

2011-10-24 Thread Evan Huus
On Mon, Oct 24, 2011 at 9:13 AM, David Peterson
dav...@wirelessconnections.net wrote:
 Can someone show me how to load FR on boot in Ubuntu?

 David

Not 100% sure off the top of my head, as I don't have an Ubuntu box in
front of me, but I expect you'd have to provide an Upstart script [1].

However, upstart will use old sysv-init scripts if they exist, and I
thought that FreeRadius already provided one of those?

Hope this helps,
Evan

[1] http://upstart.at/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Load FR on boot with Ubuntu?

2011-10-24 Thread David Peterson
Thanks for the help, that did the trick.  I found the rc.radiusd file and
added to rc.local /etc/sbin/rc.radiusd start

If that's not the correct method someone please let me know but it seems to
work.

David

-Original Message-
From:
freeradius-users-bounces+david.peterson=acc-corp@lists.freeradius.org
[mailto:freeradius-users-bounces+david.peterson=acc-corp.net@lists.freeradiu
s.org] On Behalf Of Evan Huus
Sent: Monday, October 24, 2011 9:53 AM
To: FreeRadius users mailing list
Subject: Re: Load FR on boot with Ubuntu?

On Mon, Oct 24, 2011 at 9:13 AM, David Peterson
dav...@wirelessconnections.net wrote:
 Can someone show me how to load FR on boot in Ubuntu?

 David

Not 100% sure off the top of my head, as I don't have an Ubuntu box in front
of me, but I expect you'd have to provide an Upstart script [1].

However, upstart will use old sysv-init scripts if they exist, and I thought
that FreeRadius already provided one of those?

Hope this helps,
Evan

[1] http://upstart.at/
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Load FR on boot with Ubuntu?

2011-10-24 Thread Evan Huus
On Mon, Oct 24, 2011 at 10:22 AM, David Peterson
dav...@wirelessconnections.net wrote:
 Thanks for the help, that did the trick.  I found the rc.radiusd file and
 added to rc.local /etc/sbin/rc.radiusd start

 If that's not the correct method someone please let me know but it seems to
 work.

As far as the 'correct' method goes, you'd have to ask Ubuntu or
Upstart. They would be the ones determining what 'correct' means on
their systems.

Evan

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Load FR on boot with Ubuntu?

2011-10-24 Thread Fajar A. Nugraha
On Mon, Oct 24, 2011 at 9:22 PM, David Peterson
dav...@wirelessconnections.net wrote:
 Thanks for the help, that did the trick.  I found the rc.radiusd file and
 added to rc.local /etc/sbin/rc.radiusd start

Where the heck does /etc/sbin/rc.radiusd comes from? Which Ubuntu and
FR version are you using?

Current FR packages for Ubuntu uses /etc/init.d/freeradius, although
rc.radiusd is still available in /usr/share/doc/freeradius/examples.


 If that's not the correct method someone please let me know but it seems to
 work.

Since FR is still using legacy init script, the Debian (and thus,
Ubuntu) way of doing it is using update-rc.d (see man update-rc.d).

However, being familiar with Redhat's chkconfig, I prefer to use
sysv-rc-conf (from universe repository), which has similar syntax to
chkconfig. With sysv-rc-conf, you'd do something like this:

$ sudo sysv-rc-conf --list freeradius
freeradius   0:off  1:off   2:off   3:off   4:off   5:off   6:off
$ sudo sysv-rc-conf freeradius on
$ sudo sysv-rc-conf --list freeradius
freeradius   0:off  1:off   2:on3:on4:on5:on6:off

-- 
Fajar

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Load FR on boot with Ubuntu?

2011-10-24 Thread Alan Buxey
Hi,

  added to rc.local /etc/sbin/rc.radiusd start
 
 Where the heck does /etc/sbin/rc.radiusd comes from? Which Ubuntu and
 FR version are you using?
 
 Current FR packages for Ubuntu uses /etc/init.d/freeradius, although
 rc.radiusd is still available in /usr/share/doc/freeradius/examples.

theres the debian directory which has freeradius.init in the tarball

 However, being familiar with Redhat's chkconfig, I prefer to use
 sysv-rc-conf (from universe repository), which has similar syntax to
 chkconfig. With sysv-rc-conf, you'd do something like this:

in the source tarball there is also the redhat directry with 
freeradius-radiusd-init
file - and radiusd-logrotate etc

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html