This file is indexed.

/etc/init.d/pyaimt is in pyaimt 0.8.0.1-4.

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
#! /bin/bash
### BEGIN INIT INFO
# Provides:          pyaimt
# Required-Start:    $syslog $remote_fs
# Required-Stop:     $syslog $remote_fs
# Should-Start:      $local_fs
# Should-Stop:       $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts AIM transport for Jabber
# Description:       starts PyAIMt which provides a gateway that allows Jabber users to communicate with their
#                    contacts on the AIM Messenger network. It can connect to any Jabber server
#                    that supports the Connect component mechanism.  
### END INIT INFO

export PATH=/sbin:/bin:/usr/sbin:/usr/bin

. /lib/lsb/init-functions

NAME=pyaimt
DESC="AIM transport for Jabber"

PIDDIR=/var/run/pyaimt
PIDFILE=$PIDDIR/$NAME.pid
USER=pyaimt
GROUP=pyaimt

SSD_OPTS="--pidfile=$PIDFILE --name=python --user=$USER"

DAEMON=/usr/bin/python
OPTIONS="/usr/share/pyaimt/PyAIMt.py --config=/etc/pyaimt.conf.xml --background -o pid=$PIDFILE -o spooldir=/var/lib/pyaimt -d --log=/var/log/pyaimt/pyaimt.log"

test -f $DAEMON || exit 0

if test ! -e $PIDDIR; then
	mkdir $PIDDIR
	chown $USER:$GROUP $PIDDIR
fi

case "$1" in
start)
	log_daemon_msg "Starting $DESC" "$NAME"
	start-stop-daemon --start $SSD_OPTS --startas "$DAEMON" --chuid "$USER" -- $OPTIONS
	log_end_msg $?
	;;
stop)
	log_daemon_msg "Stopping $DESC" "$NAME"
	start-stop-daemon --stop $SSD_OPTS --retry 10
	log_end_msg $?
	;;
reload|force-reload)
	log_daemon_msg "Reloading $DESC" "$NAME"
	start-stop-daemon --stop $SSD_OPTS --signal HUP
	log_end_msg $?
	;;
restart)
	$0 stop
	$0 start
	;;
status)
	status_of_proc -p $PIDFILE "$DAEMON" "$NAME" && exit 0 || exit $?
	;;
*)
	echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0

# vim: filetype=sh