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