This file is indexed.

/etc/init.d/mailman-api is in mailman-api 0.2.9-2.

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
#!/bin/sh

### BEGIN INIT INFO
# Provides:          mailman-api
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Mailman API
# Description:       Starts and stops the mailman-api daemon.
### END INIT INFO

# Author: Antonio Terceiro <terceiro@softwarelivre.org>

DESC="Mailman REST API"
NAME=mailman-api
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/${NAME}.pid

OPTIONS=''

if [ -r /etc/default/$NAME ]; then
  . /etc/default/$NAME
fi

test -x "$DAEMON" || exit

if [ -z "$DEAMON_USER" ]; then
  if [ -d /var/lib/mailman/archives/private ]; then
    DAEMON_USER=$(stat -c %U /var/lib/mailman/archives/private)
  else
    if id list >/dev/null 2>&1; then
      DAEMON_USER=list
    else
      DAEMON_USER=mailman
    fi
  fi
fi

. /lib/lsb/init-functions

do_start() {
  start-stop-daemon --start --exec $DAEMON --pidfile $PIDFILE --make-pidfile --name $NAME --user $DAEMON_USER --background -- $OPTIONS
}

do_stop() {
  start-stop-daemon --stop --name $NAME --pidfile $PIDFILE
}

case "$1" in
  start)
    do_start
    ;;
  stop)
    do_stop
    ;;
  restart|force-reload)
    do_stop
    do_start
    ;;
  *)
    echo "usage: $0 start|stop|restart"
    exit 3
    ;;
esac
exit 0