diff options
author | ivan <ivan> | 2005-11-28 17:07:50 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-11-28 17:07:50 +0000 |
commit | 8a90e2477b53a9c1f7472a7145858b6a5765d966 (patch) | |
tree | 8c920120dca12e252f1603c2bdc264d18b3e7a47 /FS/bin | |
parent | 7e849b9ceaccba63eaeab7e724e531b7a26ff8f6 (diff) |
startup freeside-sqlradius-radacctd for radiator export too
Diffstat (limited to 'FS/bin')
-rw-r--r-- | FS/bin/freeside-sqlradius-radacctd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/bin/freeside-sqlradius-radacctd b/FS/bin/freeside-sqlradius-radacctd index d66c875b9..d75592377 100644 --- a/FS/bin/freeside-sqlradius-radacctd +++ b/FS/bin/freeside-sqlradius-radacctd @@ -4,7 +4,7 @@ use strict; use vars qw( @part_export ); use subs qw(myshutdown); use POSIX qw(:sys_wait_h); -use IO::File; +#use IO::File; use FS::Daemon qw(daemonize1 drop_root logfile daemonize2 sigint sigterm); use FS::UID qw(adminsuidsetup); #forksuidsetup driver_name dbh myconnect); use FS::Record qw(qsearch); # qsearchs); @@ -29,10 +29,15 @@ daemonize2(); #-- +#don't just look for ->can('usage_sessions'), we're sqlradius-specific +# (radiator is supposed to be setup with a radacct table) + @part_export = qsearch('part_export', { 'exporttype' => 'sqlradius' } ); push @part_export, qsearch('part_export', { 'exporttype' => 'sqlradius_withdomain' } ); +push @part_export, + qsearch('part_export', { 'exporttype' => 'radiator' } ); @part_export = grep { ! $_->option('ignore_accounting') } @part_export; |