/[smeserver]/rpms/oidentd/sme10/identd.init
ViewVC logotype

Contents of /rpms/oidentd/sme10/identd.init

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


Revision 1.1 - (show annotations) (download)
Fri Mar 18 07:46:53 2016 UTC (8 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: oidentd-2_0_8-2_el7_sme, oidentd-2_0_8-4_el7_sme, oidentd-2_0_8-3_el7_sme, oidentd-2_0_8-1_rf, HEAD
Error occurred while calculating annotation data.
Initial import

1 #! /bin/sh
2 # $Id: identd.init,v 1.1 2004/02/26 17:54:30 thias Exp $
3 #
4 # identd Start/Stop RFC 1413 identd server
5 #
6 # chkconfig: 345 35 65
7 # description: The identd server provides a means to determine the identity \
8 # of a user of a particular TCP connection. Given a TCP port \
9 # number pair, it returns a character string which identifies \
10 # the owner of that connection on the server's system.
11 # processname: identd
12 # pidfile: /var/run/identd.pid
13 # config: /etc/identd.conf
14
15 # Source function library.
16 . /etc/init.d/functions
17
18 # Get config.
19 . /etc/sysconfig/network
20
21 # Check that networking is up.
22 if [ ${NETWORKING} = "no" ]
23 then
24 exit 0
25 fi
26
27 [ -x /usr/sbin/oidentd ] || exit 0
28
29 IDENTDOPTS="-q -u nobody -g nobody"
30 RETVAL=0
31
32 start() {
33 echo -n "Starting identd: "
34 daemon /usr/sbin/oidentd $IDENTDOPTS
35 RETVAL=$?
36 echo
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/identd
38 return $RETVAL
39 }
40
41 stop() {
42 echo -n "Stopping identd services: "
43 killproc oidentd
44 RETVAL=$?
45 echo
46 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/identd
47 return $RETVAL
48 }
49
50 # See how we were called.
51 case "$1" in
52 start)
53 start
54 ;;
55 stop)
56 stop
57 ;;
58 status)
59 status oidentd
60 ;;
61 restart|reload)
62 stop
63 start
64 ;;
65 condrestart)
66 if [ -f /var/lock/subsys/identd ]; then
67 stop
68 start
69 fi
70 ;;
71 *)
72 echo "Usage: identd {start|stop|status|restart|reload|condrestart}"
73 exit 1
74 esac
75
76 exit $RETVAL

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