SMF manifest to run freeradius in solaris 10
Has anyone got such a manifest for solaris 10? Kind regards Thomas --------------------------------------------------------------------------------------------- Thomas Noppe Dienst Informatiesystemen - S&O thomas.noppe@uzleuven.be<mailto:thomas.noppe@uzleuven.be> +32 16 34 79 87 +32 16 34 78 01 UZ Leuven | campus Gasthuisberg | Herestraat 49 | B - 3000 Leuven | www.uzleuven.be<http://www.uzleuven.be>
File named radius.xml <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <service_bundle type='manifest' name='radius'> <service name='system/radius' type='service' version='1'> <create_default_instance enabled='false' /> <single_instance/> <exec_method type='method' name='start' exec='/lib/svc/method/svc-radius start' timeout_seconds='60' /> <exec_method type='method' name='stop' exec='/lib/svc/method/svc-radius stop' timeout_seconds='60' /> <exec_method type='method' name='refresh' exec='/lib/svc/method/svc-radius stop reload' timeout_seconds='60' /> <stability value='Unstable' /> <template> <common_name> <loctext xml:lang='C'> radius </loctext> </common_name> <documentation> <manpage title='radius' section='1M' manpath='/usr/share/man' /> </documentation> </template> </service> </service_bundle> Best Regards Mats Blomgren B ________________________________ From: freeradius-users-bounces+mats.b.blomgren=ericsson.com@lists.freeradius.o rg [mailto:freeradius-users-bounces+mats.b.blomgren=ericsson.com@lists.free radius.org] On Behalf Of Thomas Noppe Sent: den 25 februari 2009 10:10 To: freeradius Subject: SMF manifest to run freeradius in solaris 10 Has anyone got such a manifest for solaris 10? Kind regards Thomas ------------------------------------------------------------------------ --------------------- Thomas Noppe Dienst Informatiesystemen - S&O thomas.noppe@uzleuven.be <mailto:thomas.noppe@uzleuven.be> +32 16 34 79 87 +32 16 34 78 01 UZ Leuven | campus Gasthuisberg | Herestraat 49 | B - 3000 Leuven | www.uzleuven.be <http://www.uzleuven.be>
I forgot to include "svc-radius" #!/bin/sh . /lib/svc/share/smf_include.sh #!/bin/sh # # radiusd Start the radius daemon. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Copyright (C) 2001-2002 The FreeRADIUS Project http://www.freeradius.org prefix=/usr/local exec_prefix=${prefix} sbindir=${exec_prefix}/sbin localstatedir=${prefix}/var logdir=${localstatedir}/log/radius rundir=${localstatedir}/run/radiusd sysconfdir=${prefix}/etc # # If you have issues with OpenSSL, uncomment these next lines. # # Something similar may work for MySQL, and you may also # have to LD_PRELOAD libz.so # #LD_LIBRARY_PATH=-L/usr/local/ssl/lib -lcrypto -lssl -lcrypto #LD_RUN_PATH=-L/usr/local/ssl/lib -lcrypto -lssl -lcrypto: #LD_PRELOAD=-L/usr/local/ssl/lib -lcrypto -lssl -lcryptolibcrypto.so LD_LIBRARY_PATH=/usr/local/lib/:/opt/mysql/mysql/lib export LD_LIBRARY_PATH LD_RUN_PATH LD_PRELOAD RADIUSD=$sbindir/radiusd RADDBDIR=${sysconfdir}/raddb DESC="FreeRADIUS" # # See 'man radiusd' for details on command-line options. # ARGS="" test -f $RADIUSD || exit 0 test -f $RADDBDIR/radiusd.conf || exit 0 case "$1" in start) echo -n "Starting $DESC:" $RADIUSD $ARGS echo "radiusd" ;; stop) [ -z "$2" ] && echo -n "Stopping $DESC: " [ -f $rundir/radiusd.pid ] && kill -TERM `cat $rundir/radiusd.pid` [ -z "$2" ] && echo "radiusd." ;; reload|force-reload) echo "Reloading $DESC configuration files." [ -f $rundir/radiusd.pid ] && kill -HUP `cat $rundir/radiusd.pid` ;; restart) sh $0 stop quiet sleep 3 sh $0 start ;; *) echo "Usage: /usr/local/sbin/rc.radius {start|stop|reload|restart}" exit 1 esac exit 0 Best Regards Mats Blomgren B ________________________________ From: freeradius-users-bounces+mats.b.blomgren=ericsson.com@lists.freeradius.o rg [mailto:freeradius-users-bounces+mats.b.blomgren=ericsson.com@lists.free radius.org] On Behalf Of Thomas Noppe Sent: den 25 februari 2009 10:10 To: freeradius Subject: SMF manifest to run freeradius in solaris 10 Has anyone got such a manifest for solaris 10? Kind regards Thomas ------------------------------------------------------------------------ --------------------- Thomas Noppe Dienst Informatiesystemen - S&O thomas.noppe@uzleuven.be <mailto:thomas.noppe@uzleuven.be> +32 16 34 79 87 +32 16 34 78 01 UZ Leuven | campus Gasthuisberg | Herestraat 49 | B - 3000 Leuven | www.uzleuven.be <http://www.uzleuven.be>
Thank you very much! --------------------------------------------------------------------------------------------- Thomas Noppe Dienst Informatiesystemen - S&O thomas.noppe@uzleuven.be<mailto:thomas.noppe@uzleuven.be> +32 16 34 79 87 +32 16 34 78 01 UZ Leuven | campus Gasthuisberg | Herestraat 49 | B - 3000 Leuven | www.uzleuven.be<http://www.uzleuven.be> Van: freeradius-users-bounces+thomas.noppe=uz.kuleuven.ac.be@lists.freeradius.org [mailto:freeradius-users-bounces+thomas.noppe=uz.kuleuven.ac.be@lists.freeradius.org] Namens Mats Blomgren B Verzonden: woensdag 25 februari 2009 10:14 Aan: FreeRadius users mailing list Onderwerp: RE: SMF manifest to run freeradius in solaris 10 I forgot to include "svc-radius" #!/bin/sh . /lib/svc/share/smf_include.sh #!/bin/sh # # radiusd Start the radius daemon. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Copyright (C) 2001-2002 The FreeRADIUS Project http://www.freeradius.org prefix=/usr/local exec_prefix=${prefix} sbindir=${exec_prefix}/sbin localstatedir=${prefix}/var logdir=${localstatedir}/log/radius rundir=${localstatedir}/run/radiusd sysconfdir=${prefix}/etc # # If you have issues with OpenSSL, uncomment these next lines. # # Something similar may work for MySQL, and you may also # have to LD_PRELOAD libz.so # #LD_LIBRARY_PATH=-L/usr/local/ssl/lib -lcrypto -lssl -lcrypto #LD_RUN_PATH=-L/usr/local/ssl/lib -lcrypto -lssl -lcrypto: #LD_PRELOAD=-L/usr/local/ssl/lib -lcrypto -lssl -lcryptolibcrypto.so LD_LIBRARY_PATH=/usr/local/lib/:/opt/mysql/mysql/lib export LD_LIBRARY_PATH LD_RUN_PATH LD_PRELOAD RADIUSD=$sbindir/radiusd RADDBDIR=${sysconfdir}/raddb DESC="FreeRADIUS" # # See 'man radiusd' for details on command-line options. # ARGS="" test -f $RADIUSD || exit 0 test -f $RADDBDIR/radiusd.conf || exit 0 case "$1" in start) echo -n "Starting $DESC:" $RADIUSD $ARGS echo "radiusd" ;; stop) [ -z "$2" ] && echo -n "Stopping $DESC: " [ -f $rundir/radiusd.pid ] && kill -TERM `cat $rundir/radiusd.pid` [ -z "$2" ] && echo "radiusd." ;; reload|force-reload) echo "Reloading $DESC configuration files." [ -f $rundir/radiusd.pid ] && kill -HUP `cat $rundir/radiusd.pid` ;; restart) sh $0 stop quiet sleep 3 sh $0 start ;; *) echo "Usage: /usr/local/sbin/rc.radius {start|stop|reload|restart}" exit 1 esac exit 0 Best Regards Mats Blomgren B ________________________________ From: freeradius-users-bounces+mats.b.blomgren=ericsson.com@lists.freeradius.org [mailto:freeradius-users-bounces+mats.b.blomgren=ericsson.com@lists.freeradius.org] On Behalf Of Thomas Noppe Sent: den 25 februari 2009 10:10 To: freeradius Subject: SMF manifest to run freeradius in solaris 10 Has anyone got such a manifest for solaris 10? Kind regards Thomas --------------------------------------------------------------------------------------------- Thomas Noppe Dienst Informatiesystemen - S&O thomas.noppe@uzleuven.be<mailto:thomas.noppe@uzleuven.be> +32 16 34 79 87 +32 16 34 78 01 UZ Leuven | campus Gasthuisberg | Herestraat 49 | B - 3000 Leuven | www.uzleuven.be<http://www.uzleuven.be>
participants (2)
-
Mats Blomgren B -
Thomas Noppe