~ubuntu-branches/ubuntu/dapper/freeradius/dapper-updates

« back to all changes in this revision

Viewing changes to debian/freeradius.init

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2006-01-15 13:34:13 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060115133413-92geefww41y7hqi8
Tags: 1.1.0-1
* ReDebianise upstream tarball:
  - Deleted RFCs: 2243 2289 2433 2548 2618 2619 2620 2621 2716 2759 2809 2865
                  2866 2867 2868 2869 2882 2924 3162 3575 3576 3579 3580
                  draft-kamath-pppext-eap-mschapv2-00

* New FreeRADIUS modules marked stable by new upstream release
  - rlm_perl
  - rlm_sqlcounter
  - rlm_sql_log + radsqlrelay
  - rlm_otp (formerly rlm_x99_token, not built as it depends on OpenSSL)

* Remove upstream-integrated patches:
  - 02_EAP-SIM_doesnt_need_openssl
  - 03_X99_is_not_stable
  - 07_manpage_fixups
  - 09_use_crypth_if_we_have_it
  - 10_escape_entire_ldap_string
  - 11_dont_xlat_possibly_bad_usernames_in_bad_accounting_packets
  - 12_dialup_admin_various_fixes

* More dialup-admin fixes from Arve Seljebu
  - Fix redirects in dialup-admin pages on servers with
    register_globals turned off.
    Closes: #333704
  - HTTP form fields will always fail is_int, use in_numeric instead
    Closes: #335149
  - Created 12_more_dialup_admin_various_fixes

* Update to Policy 3.6.2.0
* Upgrade Debhelper support to V5
* Don't install the .in files with the examples
* Prefer libmysqlclient15-dev
  Closes: #343779
* Shared secrets can only be 31 characters long, note this in clients.conf
  - Created 02_document_actual_shared_secret_maximum_length
  Closes: 344606
* Added support for lsb-init functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
set -e
5
5
 
 
6
source /lib/lsb/init-functions
 
7
 
6
8
PROG="freeradius"
7
9
PROGRAM="/usr/sbin/freeradius"
8
10
PIDFILE="/var/run/freeradius/freeradius.pid"
12
14
 
13
15
case "$1" in
14
16
        start)
15
 
                echo -n "Starting $DESCR: "
 
17
#               echo -n "Starting $DESCR: "
 
18
                log_daemon_msg "Starting $DESCR" "$PROG"
16
19
                start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PROGRAM
17
20
                if [ $? = 0 ]; then
18
 
                        echo "$PROG."
 
21
#                       echo "$PROG."
 
22
                        log_end_msg 0
19
23
                else
20
 
                        echo "(failed!  run '$PROGRAM -x' to find out why.)"
 
24
#                       echo "(failed!  run '$PROGRAM -x' to find out why.)"
 
25
                        log_end_msg 1
21
26
                        exit 1
22
27
                fi
23
28
                ;;
24
29
        stop)
25
 
                echo -n "Stopping $DESCR: "
 
30
#               echo -n "Stopping $DESCR: "
 
31
                log_daemon_msg "Stopping $DESCR" "$PROG"
26
32
                start-stop-daemon --stop --quiet --pidfile $PIDFILE
27
 
                echo "$PROG."
 
33
#               echo "$PROG."
 
34
                log_end_msg 0
28
35
                ;;
29
36
        restart)
30
 
                echo -n "Restarting $DESCR: "
 
37
#               echo -n "Restarting $DESCR: "
31
38
                $0 stop
32
39
                sleep 2
33
40
                $0 start
34
41
                ;;
35
42
        reload | force-reload) 
36
 
                echo -n "Reloading configuration files for $DESCR"
 
43
#               echo -n "Reloading configuration files for $DESCR"
 
44
                log_action_begin_msg "Reloading configuration files for $DESCR"
37
45
                start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE
 
46
                log_action_cont_msg "HUP sent"
38
47
                sleep 2
39
 
                ps --pid $(cat $PIDFILE) > /dev/null || exit 1
40
 
                echo "."
 
48
#               ps --pid $(cat $PIDFILE) > /dev/null || exit 1
 
49
                ps --pid $(cat $PIDFILE) > /dev/null
 
50
                if [ $? = 0 ]; then
 
51
                        log_action_end_msg 0
 
52
                else
 
53
                        log_action_end_msg 1 "$DESCR died"
 
54
                        exit 1
 
55
                fi
 
56
#               echo "."
41
57
                ;;
42
58
        *)
43
59
                echo "Usage: /etc/init.d/freeradius start|stop|restart|reload|force-reload"