blob: 7e92c867366c40a87999621e1dacd559e2663fac (
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
|
#!/bin/bash
PROGRAM=/usr/sbin/thinkfan
DESC="Fan cooling control daemon"
ARGS=-q
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 $PROGRAM
}
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
}
|