[Freeswitch-users] patch for debian init script
Michael Jerris
mike at jerris.com
Tue Sep 8 09:26:34 PDT 2009
Please post this patch to http://jira.freeswitch.org in the build
system project and I will get this merged in
Mike
On Sep 8, 2009, at 10:28 AM, Christian Löschenkohl wrote:
> hi
>
> just a quick patch for the debian init script debian/freeswitch.init
> i do use the reload function and the script complains about the -C
> option
> it also would be perfect if the reload option is enabled by default
> (usefull
> for logrotating) -> combined in second patch
>
> br
>
> *********************************************************************************************
>
> --- debian/freeswitch.init-old 2009-09-08 16:18:49.000000000 +0200
> +++ debian/freeswitch.init 2009-09-08 16:19:13.000000000 +0200
> @@ -103,7 +103,7 @@
> # restarting (for example, when it is sent a SIGHUP),
> # then implement that here.
> #
> - start-stop-daemon -C $USER --stop --signal 1 --quiet --
> pidfile $PIDFILE --name $NAME
> + start-stop-daemon -c $USER --stop --signal 1 --quiet --
> pidfile $PIDFILE --name $NAME
> return 0
> }
>
> *********************************************************************************************
>
> --- debian/freeswitch.init-old 2009-09-08 16:26:01.000000000 +0200
> +++ debian/freeswitch.init 2009-09-08 16:19:13.000000000 +0200
> @@ -103,7 +103,7 @@
> # restarting (for example, when it is sent a SIGHUP),
> # then implement that here.
> #
> - start-stop-daemon -C $USER --stop --signal 1 --quiet --
> pidfile $PIDFILE --name $NAME
> + start-stop-daemon -c $USER --stop --signal 1 --quiet --
> pidfile $PIDFILE --name $NAME
> return 0
> }
>
> @@ -124,15 +124,15 @@
> 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
> esac
> ;;
> - reload|force-reload)
> + #reload|force-reload)
> #
> # If do_reload() is not implemented then leave this
> commented out
> # and leave 'force-reload' as an alias for 'restart'.
> #
> - log_daemon_msg "Reloading $DESC" "$NAME"
> - do_reload
> - log_end_msg $?
> - ;;
> + #log_daemon_msg "Reloading $DESC" "$NAME"
> + #do_reload
> + #log_end_msg $?
> + #;;
> restart|force-reload)
> #
> # If the "reload" option is implemented then remove the
> @@ -156,8 +156,8 @@
> esac
> ;;
> *)
> - echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-
> reload}" >&2
> - #echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}"
> >&2
> + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-
> reload}" >&2
> + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}"
> >&2
> exit 3
> ;;
> esac
>
>
> --
> Ing. Christian Löschenkohl
> Technische Leitung, Forschung & Entwicklung VoIP
>
> xpirio
> Telekommunikation & Service GmbH
> Lakeside B04
> 9020 Klagenfurt
> Austria
>
> T +43 (0) 5 77 11 - 1000
> F +43 (0) 5 77 11 - 1002
> E christian.loeschenkohl at xpirio.com
More information about the FreeSWITCH-users
mailing list