rpms/rp-pppoe/devel pppoe-server.init, NONE, 1.1 rp-pppoe.spec, 1.47, 1.48

Than Ngo than at fedoraproject.org
Mon Sep 7 16:15:17 UTC 2009


Author: than

Update of /cvs/extras/rpms/rp-pppoe/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21771

Modified Files:
	rp-pppoe.spec 
Added Files:
	pppoe-server.init 
Log Message:
- add feature, save and restore all information about default routes bz#191242
- add startup script for pppoe-server bz#507123




--- NEW FILE pppoe-server.init ---
#!/bin/sh
#
# pppoe-server: Starts the PPPoE Server.
#
# chkconfig: 2345 10 92
# description:  pppoe-server is a user-space server for PPPoE (Point-to-Point Protocol over Eth- \
#               ernet) for Linux and other UNIX systems.  pppoe-server works in concert with the \
#               pppoe client to respond to PPPoE discovery packets and set up PPPoE sessions.
# processname:  /sbin/pppoe-server
# config:       /etc/ppp/pppoe-server-options

. /etc/rc.d/init.d/functions
RETVAL=0
prog=pppoe-server

check() {
        # Check that we're a privileged user
        [ `id -u` = 0 ] || exit 4

        # Check if acpid is executable
        test -x /sbin/$prog || exit 5
}

start() {
        check
        echo -n $"Starting $prog: "
        daemon /sbin/$prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
        return $RETVAL
}

stop() {
       check
        echo -n $"Stopping $prog: "
        killproc /sbin/$prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
        return $RETVAL
}

restart() {
        stop
        start
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        restart
        ;;
    reload)
        echo "$0: Unimplemented feature."
        RETVAL=3
        ;;
    force-reload)
        echo "$0: Unimplemented feature."
        RETVAL=3
        ;;
    condrestart)
        if [ -f /var/lock/subsys/pppoe-server ]; then
            restart
        fi
        ;;
    status)
        status pppoe-server
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
        RETVAL=3
        ;;
esac

exit $RETVAL


Index: rp-pppoe.spec
===================================================================
RCS file: /cvs/extras/rpms/rp-pppoe/devel/rp-pppoe.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -p -r1.47 -r1.48
--- rp-pppoe.spec	7 Sep 2009 14:49:54 -0000	1.47
+++ rp-pppoe.spec	7 Sep 2009 16:15:16 -0000	1.48
@@ -1,7 +1,7 @@
 Summary: A PPP over Ethernet client (for xDSL support).
 Name: rp-pppoe
 Version: 3.10
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2+
 Group: System Environment/Daemons
 Url: http://www.roaringpenguin.com/pppoe/
@@ -11,6 +11,7 @@ Source2: pppoe-setup
 Source3: pppoe-start
 Source4: pppoe-status
 Source5: pppoe-stop
+Source6: pppoe-server.init
 
 Patch0: rp-pppoe-3.8-redhat.patch
 
@@ -61,6 +62,7 @@ install -m 0755 %{SOURCE2} %{buildroot}/
 install -m 0755 %{SOURCE3} %{buildroot}/sbin
 install -m 0755 %{SOURCE4} %{buildroot}/sbin
 install -m 0755 %{SOURCE5} %{buildroot}/sbin
+install -m 0755 %{SOURCE6} %{buildroot}/etc/rc.d/init.d/pppoe-server
 
 pushd %{buildroot}%{_sbindir}
 ln -s ../../sbin/* .
@@ -147,6 +149,7 @@ exit 0
 %changelog
 * Mon Sep 07 2009 Than Ngo <than at redhat.com> - 3.10-4
 - add feature, save and restore all information about default routes bz#191242
+- add startup script for pppoe-server bz#507123
 
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.10-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild




More information about the fedora-extras-commits mailing list