This file is indexed.

/etc/init.d/pymsnt is in pymsnt 0.11.3-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
#! /bin/bash
### BEGIN INIT INFO
# Provides:          pymsnt
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO

set -e

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

NAME=pymsnt
DESC="MSN transport for Jabber"

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

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

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

test -f $DAEMON || exit 0

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

case "$1" in
start)
	echo -n "Starting $DESC: "
	(start-stop-daemon --start $SSD_OPTS --startas "$DAEMON" --chuid "$USER" -- $OPTIONS)
	if test "$?" = 0; then echo "$NAME."; fi
	;;
stop)
	echo -n "Stopping $DESC: "
	(start-stop-daemon --stop $SSD_OPTS --retry 10)
	if test "$?" = 0; then echo "$NAME."; fi
	;;
reload|force-reload)
	echo -n "Reloading $DESC configuration..."
	(start-stop-daemon --stop $SSD_OPTS --signal HUP)
	if test "$?" = 0; then echo 'done.'; fi
	;;
restart)
	$0 stop
	$0 start
	;;
*)
	echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0

# vim: filetype=sh