This file is indexed.

/etc/init.d/ircd-hybrid is in ircd-hybrid 1:8.1.13.dfsg.1-1.

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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#! /bin/sh

# ircd-hybrid	Start/stop the Hybrid 8 IRC server.

### BEGIN INIT INFO
# Provides:          ircd-hybrid
# Required-Start:    $syslog $remote_fs
# Required-Stop:     $syslog $remote_fs
# Should-Start:      $local_fs $network $named
# Should-Stop:       $local_fs $network $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: IRCd-Hybrid daemon init.d script
# Description:       Use to manage the IRCd-Hybrid daemon.
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/ircd-hybrid
DEFAULT=/etc/default/ircd-hybrid
NAME=ircd-hybrid
DESC="Hybrid 8 IRC Server"

. /lib/lsb/init-functions

test -f $DAEMON || exit 0

if [ -f $DEFAULT ]
then
	. $DEFAULT
fi

set -e

case "$1" in
  start)
	if [ "$START" = "yes" ]
	then
		echo -n "Starting $DESC: $NAME"
		mkdir -p -m 755 /var/run/ircd
		chown irc:irc /var/run/ircd
		start-stop-daemon --start --quiet \
			-u irc -c irc --exec $DAEMON -- -pidfile /var/run/ircd/$NAME.pid \
			> /dev/null
		echo "."
	fi
	;;
  stop)
	echo -n "Stopping $DESC: $NAME"
	start-stop-daemon --oknodo --stop --quiet \
	--pidfile /var/run/ircd/$NAME.pid \
	--signal 15 --exec $DAEMON -- -pidfile /var/run/ircd/$NAME.pid
	echo "."
	;;
  reload)
	if [ "$START" = "yes" ]
	then
	  	if [ -f "/var/run/ircd/$NAME.pid" ]; then
	  	  echo -n "Reloading configuration files for $NAME..."
		  kill -HUP `cat /var/run/ircd/$NAME.pid`
		  echo "done."
		else
		  echo "Not reloading configuration files for $NAME - not running!"
		fi
	fi
	;;
  restart|force-reload)
	if [ "$START" = "yes" ]
	then
		echo -n "Restarting $DESC: $NAME"
		if [ -f "/var/run/ircd/$NAME.pid" ]; then
		  start-stop-daemon --stop --quiet --pidfile \
			/var/run/ircd/$NAME.pid --signal 15 \
			--exec $DAEMON -- -pidfile /var/run/ircd/$NAME.pid
		  sleep 1
		fi
		mkdir -p -m 755 /var/run/ircd
		chown irc:irc /var/run/ircd
		start-stop-daemon --start --quiet \
		  -u irc -c irc --exec $DAEMON -- -pidfile /var/run/ircd/$NAME.pid \
		> /dev/null
		echo "."
	fi
	;;
  *)
	echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0