This file is indexed.

/etc/init.d/bosixnet-webui is in bosixnet-webui 1.6-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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash

### BEGIN INIT INFO
# Provides:          bosixnet-webui
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts bosixnet_webui
# Description:       starts FastCGI program for generating /etc/hosts
### END INIT INFO

# Author: Boris Pek
# Last updated: 2014-02-04

NAME=bosixnet_webui
DESC="BOSixNet server"
DAEMON=/usr/lib/bosixnet/webui_launcher
DAEMON_OPTS=
SCRIPT=bosixnet-webui
PIDFILE=/var/run/${NAME}.pid


[ -x ${DAEMON} ] || exit 0

. /lib/lsb/init-functions

set -e

check_start() {
    set +e
    DAEMON_PID="$(pidof -x ${NAME})"
    if [ ! -z "${DAEMON_PID}" ]; then
        log_end_msg $?
        exit 0
    fi
    set -e
}

check_stop() {
    set +e
    DAEMON_PID="$(pidof -x ${NAME})"
    if [ ! -z "${DAEMON_PID}" ]; then
        killall -9 "${NAME}" >/dev/null 2>/dev/null
        sleep 1
    fi
    set -e
}

start() {
    check_start
    start-stop-daemon --start --quiet --pidfile "${PIDFILE}" \
        --exec "${DAEMON}" --oknodo -- ${DAEMON_OPTS}
}

stop() {
    start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" \
        --exec "${DAEMON}" --oknodo --retry 5
    sleep 1
    check_stop
}

case "$1" in
    start)
        log_daemon_msg "Starting ${DESC}" "${NAME}"
        start
        log_end_msg $?
        ;;
    stop)
        log_daemon_msg "Stopping ${DESC}" "${NAME}"
        stop
        log_end_msg $?
        ;;
    restart|force-reload)
        log_daemon_msg "Restarting ${DESC}" "${NAME}"
        stop
        sleep 1
        start
        log_end_msg $?
        ;;
    status)
        status_of_proc -p "${PIDFILE}" "${DAEMON}" "${NAME}" && exit 0 || exit $?
        ;;
    install)
        cp -f ${0} /etc/init.d/${SCRIPT}
        insserv bosixnet-webui
        ;;
    remove)
        rm -f /etc/rc*.d/*${SCRIPT}*
        rm -f /etc/init.d/${SCRIPT}
        ;;
    *)
        echo "Usage: /etc/init.d/${SCRIPT} {start|stop|restart|force-reload|status|install|remove}" >&2
        exit 1
        ;;
esac

exit 0