7 -RUNDIR = ${localstatedir}/run/radiusd
8 +RUNDIR = ${localstatedir}/run/freeradius
11 LIBRADIUS = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la $(TALLOC_LIBS)
12 --- a/raddb/radiusd.conf.in
13 +++ b/raddb/radiusd.conf.in
17 # name of the running server. See also the "-n" command-line option.
21 # Location of config and logfiles.
24 # member. This can allow for some finer-grained access
32 # Core dumps are a bad thing. This should only be set to
33 # 'yes' if you're debugging a problem with the server.
34 --- a/scripts/monit/freeradius.monitrc
35 +++ b/scripts/monit/freeradius.monitrc
37 # Totalmem limit should be lowered to 200.0 if none of the
38 # interpreted language modules or rlm_cache are being used.
40 -check process radiusd with pidfile /var/run/radiusd/radiusd.pid
41 - start program = "/etc/init.d/radiusd start"
42 - stop program = "/etc/init.d/radiusd stop"
43 +check process freeradius with pidfile /var/run/freeradius/freeradius.pid
44 + start program = "/etc/init.d/freeradius start"
45 + stop program = "/etc/init.d/freeradius stop"
46 if failed host 127.0.0.1 port 1812 type udp protocol radius secret testing123 then alert
47 if failed host 127.0.0.1 port 1813 type udp protocol radius secret testing123 then alert
48 if cpu > 95% for 2 cycles then alert
49 --- a/raddb/sites-available/control-socket
50 +++ b/raddb/sites-available/control-socket
53 # Name of user that is allowed to connect to the control socket.
59 # Name of group that is allowed to connect to the control socket.
66 diff --git a/src/main/radiusd.c b/src/main/radiusd.c
67 index 1ae66ec..ee1a711 100644
68 --- a/src/main/radiusd.c
69 +++ b/src/main/radiusd.c
70 @@ -93,7 +93,6 @@ int main(int argc, char *argv[])
71 bool display_version = false;
73 int from_child[2] = {-1, -1};
75 fr_state_t *state = NULL;
78 @@ -128,13 +127,7 @@ int main(int argc, char *argv[])
79 main_config.myip.af = AF_UNSPEC;
81 main_config.daemonize = true;
83 - p = strrchr(argv[0], FR_DIR_SEP);
85 - main_config.name = argv[0];
87 - main_config.name = p + 1;
89 + main_config.name = "radiusd";
92 * Don't put output anywhere until we get told a little