# Get service config
[ -f /etc/sysconfig/radsecproxy ] && . /etc/sysconfig/radsecproxy
-upstart_controlled
-
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
Name: radsecproxy
Version: 1.6.1
-Release: 1
+Release: 2
License: GPLv2+ or BSD-like
Group: Networking/Daemons/Radius
Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz
# Source0-md5: 841ec9b1492a7c7ae301a05ab035d85d
Source1: %{name}.init
Source2: %{name}.logrotate
-Source3: %{name}.upstart
Patch0: %{name}-docbook2x.patch
URL: http://software.uninett.no/radsecproxy/
# For manual creation:
install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
-cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/init/%{name}.conf
install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
/sbin/chkconfig --del %{name}
fi
-%post upstart
-%upstart_post %{name}
-
-%postun upstart
-%upstart_postun %{name}
-
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%{_mandir}/man1/*
%{_mandir}/man5/*
-
-%files upstart
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
+++ /dev/null
-description "RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)"
-
-start on pld.sysinit-done
-stop on pld.shutdown-started
-
-respawn
-exec /usr/sbin/radsecproxy -i /var/run/radsecproxy.pid
-expect daemon
-