This file is indexed.

/etc/init.d/oidentd is in oidentd 2.0.8-5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
### BEGIN INIT INFO
# Provides:          oidentd ident-server
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:	
# Should-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: replacement ident daemon
# Description:       oidentd is a replacement ident daemon
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
OIDENTD=/usr/sbin/oidentd

# See if the daemons are there
test -f ${OIDENTD} || exit 0

# oidentd configuration
OIDENT_OPTIONS=""
OIDENT_USER="nobody"
OIDENT_GROUP="nogroup"
test -f /etc/default/oidentd && . /etc/default/oidentd

. /lib/lsb/init-functions

if [ "${OIDENT_BEHIND_PROXY}" = "yes" ]; then
  # If we have a default router, then allow it to proxy auth requests to us
  if [ -x /bin/netstat ] && [ -x /usr/bin/awk ]; then
    GATEWAY=`netstat -nr | awk '/^0.0.0.0/{print $2;}'`
  elif [ -x /bin/ip ] && [ -x /usr/bin/awk ]; then
    GATEWAY=`ip route show 0.0.0.0/0 | awk '/^default via /{print $3}'`
  fi
  if [ -n "${GATEWAY}" ]; then
    OIDENT_OPTIONS="${OIDENT_OPTIONS} -P ${GATEWAY}"
  fi
fi
 

OPTIONS="${OIDENT_OPTIONS} -u ${OIDENT_USER} -g ${OIDENT_GROUP}"

case "$1" in
	start)
		log_daemon_msg "Starting ident daemon" "oidentd"
		start-stop-daemon --start --quiet --oknodo --exec ${OIDENTD} -- ${OPTIONS}
		log_end_msg $?
		;;
	stop)
		log_daemon_msg "Stopping ident daemon" "oidentd"
		start-stop-daemon --stop --quiet --oknodo --exec ${OIDENTD} -- ${OPTIONS}
		log_end_msg $?
		;;
	reload|restart|force-reload)
		log_daemon_msg "Restarting ident daemon" "oidentd"
		start-stop-daemon --stop --quiet --exec ${OIDENTD} -- ${OPTIONS}
		sleep 2
		start-stop-daemon --start --quiet --exec ${OIDENTD} -- ${OPTIONS}
		log_end_msg $?
		;;
	*)
		log_success_msg "Usage: $0 {start|stop|restart|reload|force-reload}"
		exit 1
		;;
esac

exit 0