-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathacpufreq.init
More file actions
38 lines (33 loc) · 976 Bytes
/
Copy pathacpufreq.init
File metadata and controls
38 lines (33 loc) · 976 Bytes
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
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: acpufreq
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: acpufreq - Auto CPU Frequency Daemon
### END INIT INFO
DESC="acpufreq"
DAEMON=placeholder/sbin/afreq
PIDFILE=/var/run/acpufreq.pid
START_ARGS="--background"
RELOAD_SIGNAL="USR1"
do_stop_cmd_override() {
start-stop-daemon --stop --quiet \
--retry=CONT/0/TERM/30/KILL/5 \
--pidfile "$PIDFILE" \
${COMMAND_NAME:+--name "$COMMAND_NAME"} $STOP_ARGS
RETVAL="$?"
return $RETVAL
}
do_reload_cmd() {
start-stop-daemon --stop --signal $RELOAD_SIGNAL --quiet \
--pidfile "$PIDFILE" \
${COMMAND_NAME:+--name "$COMMAND_NAME"} $RELOAD_ARGS
RETVAL="$?"
return $RETVAL
}