This file is indexed.

/etc/init.d/icecc-scheduler is in icecc 1.0.1-1.

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
#!/bin/sh
### BEGIN INIT INFO
# Provides:          icecc-scheduler
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: control icecc scheduler start at boot time
# Description:       control icecc scheduler start at boot time by
#                    sourcing /etc/default/icecc and /etc/icecc/icecc.conf.
### END INIT INFO

SCHEDULER=/usr/sbin/icecc-scheduler
CONFIGFILE=/etc/icecc/icecc.conf
DEFAULTFILE=/etc/default/icecc

# Read configuration files
[ -r $CONFIGFILE ] && . $CONFIGFILE
[ -r $DEFAULTFILE ] && . $DEFAULTFILE

test -x $SCHEDULER || exit 0

. /lib/lsb/init-functions

netname=
if test -n "$ICECC_NETNAME"; then
	netname="-n $ICECC_NETNAME"
fi

start_icecc_scheduler() {
	if test -z "$ICECC_SCHEDULER_LOG_FILE"; then
		ICECC_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler"
	fi

	logfile="-l $ICECC_SCHEDULER_LOG_FILE"
	: > $ICECC_SCHEDULER_LOG_FILE
	chown icecc $ICECC_SCHEDULER_LOG_FILE
	start-stop-daemon --start --quiet --chuid icecc \
	--exec $SCHEDULER -- -d $logfile $netname
}

stop_icecc_scheduler() {
	start-stop-daemon --stop --quiet --signal TERM --oknodo --exec $SCHEDULER
}

case "$1" in
  start)
        log_daemon_msg "Starting distributed compiler scheduler" "icecc-scheduler"
        start_icecc_scheduler
        log_end_msg $?
        ;;
  stop)
        log_daemon_msg "Stopping distributed compiler scheduler" "icecc_scheduler"
        stop_icecc_scheduler
        log_end_msg $?
        ;;
  restart|force-reload)
        log_daemon_msg "Restarting distributed compiler scheduler" "icecc-scheduler"
        stop_icecc_scheduler
        sleep 1
        start_icecc_scheduler
        log_end_msg $?
        ;;
  status)
        status_of_proc "$SCHEDULER" "icecc-scheduler" && exit 0 || exit $?
        ;;
  *)
        N=/etc/init.d/icecc-scheduler
        echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
        exit 1
        ;;
esac

exit 0