This file is indexed.

/etc/init.d/pwrkap is in pwrkap 7.30-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
#!/bin/sh

# Start and stop pwrkap service
# (C) Copyright IBM Corp. 2008

### BEGIN INIT INFO
# Provides:          pwrkap
# Required-Start:    $network $remote_fs
# Required-Stop:     $remote_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: pwrkap initscript
# Description:       This script take care of starting and stopping the
#                    pwrkap daemon.
### END INIT INFO

PATH="/sbin:/bin:/usr/sbin:/usr/bin"

[ -x /usr/bin/pwrkap_main ] || exit 0

. /lib/lsb/init-functions

NAME="pwrkap"
DAEMON="/usr/bin/pwrkap_main"
PIDFILE="/var/run/$NAME.pid"

case "$1" in
start)
    log_daemon_msg "Starting $NAME energy cap daemon" "$NAME"
    start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON >/dev/null
    if [ "$?" = 0 ]; then
	log_end_msg 0
    else
        log_end_msg 1
    fi
    ;;
stop)
    log_daemon_msg "Stopping $NAME energy cap daemon" "$NAME"
    if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE; then
	log_end_msg 0
    else
	log_end_msg 1
    fi
    ;;
restart|force-reload)
    start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
    ;;
status)
    status_of_proc -p $PIDFILE /usr/lib/$NAME/pwrkap_main.py $NAME && exit 0 || exit $?
    ;;
*)
    echo "Usage: $0 {start|stop|restart|force-reload|status}"
    exit 1
    ;;
esac

exit 0