blob: 46a8b510d153d1333dd64209c7ae160834e951d3 (
plain) (
blame)
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
|
#!/bin/bash
#
# Source Mage init.d install information
# SMGL-script-version=20030606
# SMGL-START:S:S25
# SMGL-STOP:0 6:K65
#
# Startup script for the cpufreqd daemon. It's been made using the
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.9.1 08-Apr-2002 miquels@cistron.nl
#
PROGRAM=/usr/sbin/cpufreqd
DESC="CPU Frequency daemon"
RUNLEVEL=3
. /etc/init.d/smgl_init
required_executable $PROGRAM
start()
{
echo "Starting $DESC: $NAME"
loadproc $PROGRAM
evaluate_retval
}
stop()
{
echo "Stopping $DESC: $NAME "
killproc $PROGRAM
evaluate_retval
}
status()
{
statusproc $DAEMON
}
restart()
{
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo "Restarting $DESC: $NAME"
stop
sleep 1
start
}
|