diff options
Diffstat (limited to 'contrib/debian')
-rw-r--r-- | contrib/debian/accel-ppp-default (renamed from contrib/debian/accel-pptp-default) | 0 | ||||
-rwxr-xr-x | contrib/debian/accel-ppp-init (renamed from contrib/debian/accel-pptp-init) | 28 |
2 files changed, 14 insertions, 14 deletions
diff --git a/contrib/debian/accel-pptp-default b/contrib/debian/accel-ppp-default index 50a75c9a..50a75c9a 100644 --- a/contrib/debian/accel-pptp-default +++ b/contrib/debian/accel-ppp-default diff --git a/contrib/debian/accel-pptp-init b/contrib/debian/accel-ppp-init index fd483323..7918ee66 100755 --- a/contrib/debian/accel-pptp-init +++ b/contrib/debian/accel-ppp-init @@ -1,7 +1,7 @@ #!/bin/sh -# /etc/init.d/accel-pptpd: set up the accel-pptp server +# /etc/init.d/accel-pppd: set up the accel-ppp server ### BEGIN INIT INFO -# Provides: accel-pptp +# Provides: accel-ppp # Required-Start: $networking # Required-Stop: $networking # Default-Start: 2 3 4 5 @@ -14,27 +14,27 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin . /lib/lsb/init-functions -if test -f /etc/default/accel-pptp; then - . /etc/default/accel-pptp +if test -f /etc/default/accel-ppp; then + . /etc/default/accel-ppp fi -if [ -z $ACCEL_PPPTD_OPTS ]; then - ACCEL_PPTPD_OPTS="-c /etc/accel-pptp.conf" +if [ -z $ACCEL_PPPD_OPTS ]; then + ACCEL_PPPD_OPTS="-c /etc/accel-ppp.conf" fi case "$1" in start) - log_daemon_msg "Starting accel-pptp server" "accel-pptpd" - if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pptpd -- -d -p /var/run/accel-pptpd.pid $ACCEL_PPTPD_OPTS; then + log_daemon_msg "Starting PPtP/L2TP/PPPoE server" "accel-pppd" + if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pppd -- -d -p /var/run/accel-pppd.pid $ACCEL_PPPD_OPTS; then log_end_msg 0 else log_end_msg 1 fi ;; restart) - log_daemon_msg "Restarting accel-pptp server" "accel-pptpd" - start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pptpd.pid - if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pptpd -- -d -p /var/run/accel-pptpd.pid $ACCEL_PPTPD_OPTS; then + log_daemon_msg "Restarting PPtP/L2TP/PPPoE server" "accel-pppd" + start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pppd.pid + if start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/accel-pppd -- -d -p /var/run/accel-pppd.pid $ACCEL_PPPD_OPTS; then log_end_msg 0 else log_end_msg 1 @@ -42,8 +42,8 @@ case "$1" in ;; stop) - log_daemon_msg "Stopping accel-pptp server" "accel-pptpd" - start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pptpd.pid + log_daemon_msg "Stopping PPtP/L2TP/PPPoE server" "accel-pppd" + start-stop-daemon --stop --quiet --oknodo --retry 180 --pidfile /var/run/accel-pppd.pid log_end_msg 0 ;; @@ -51,7 +51,7 @@ case "$1" in do_status ;; *) - log_success_msg "Usage: /etc/init.d/accel-pptp {start|stop|status|restart}" + log_success_msg "Usage: /etc/init.d/accel-ppp {start|stop|status|restart}" exit 1 ;; esac |