/[smeserver]/rpms/diald/sme8/diald.init
ViewVC logotype

Annotation of /rpms/diald/sme8/diald.init

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 18:15:06 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: diald-1_0-3_el5_sme, HEAD
Import on branch sme8 of package diald-1.0-3.el5.sme.src.rpm

1 slords 1.1 #!/bin/sh
2     #------------------------------------------------------------
3     # DO NOT MODIFY THIS FILE! It is updated automatically by the
4     # SME Server software. Instead, modify the source template in
5     # an /etc/e-smith/templates-custom directory. For more
6     # information, see http://www.e-smith.org/custom/
7     #
8     # copyright (C) 1999-2003 Mitel Networks Corporation
9     #------------------------------------------------------------
10    
11    
12     #
13     # diald The on demand TCP/IP networking program
14     #
15     #
16     # chkconfig: 2345 57 5
17     # description: Diald is the smart demand-dial PPP/SLIP networking daemon. \
18     # It selectively activates the SLIP/PPP link to the Internet when \
19     # traffic is detected that is considered important.
20     #
21    
22     # Source function library.
23     . /etc/rc.d/init.d/functions
24    
25     # Source networking configuration.
26     . /etc/sysconfig/network
27    
28     # Check that networking is up.
29     [ ${NETWORKING} = "no" ] && exit 0
30    
31     [ -f /usr/sbin/diald ] || exit 0
32    
33     [ -f /etc/diald.conf ] || exit 0
34    
35    
36     # See how we were called.
37     case "$1" in
38     start)
39     # Start daemons.
40     echo -n "Starting diald: "
41     echo 1 > /proc/sys/net/ipv4/ip_forward
42     echo 2 > /proc/sys/net/ipv4/ip_dynaddr
43     # echo 7 > /proc/sys/net/ipv4/ip_dynaddr
44     daemon /usr/sbin/diald
45     echo
46     touch /var/lock/subsys/diald
47     ;;
48     stop)
49     # Stop daemons.
50     echo -n "Shutting down diald: "
51     killproc /usr/sbin/diald
52     echo
53     rm -f /var/lock/subsys/diald
54     ;;
55     restart)
56     $0 stop
57     $0 start
58     ;;
59     status)
60     status diald
61     ;;
62     *)
63     echo "Usage: diald {start|stop|restart|status}"
64     exit 1
65     esac
66    
67     exit 0

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed