repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git]
/
trinity-kdebase
/
kdm-trinity
blob
48f2903558cd05b19406668b6457ce5397a25d3e
1
#!/bin/bash
2
3
# general config
4
.
/
etc
/
rc.conf
5
.
/
etc
/
rc.d
/
functions
6
7
case
"
$1
"
in
8
start
)
9
#Check for running kdm, start when not running
10
stat_busy
"Starting KDM"
11
/
opt
/
trinity
/
bin
/
kdm
12
if
[
$?
-gt
0
];
then
13
stat_fail
14
else
15
add_daemon kdm
16
stat_done
17
fi
18
;;
19
stop
)
20
stat_busy
"Stopping KDM"
21
[
-f
/
var
/
run
/
kdm.pid
] &&
kill
`cat /var/run/kdm.pid`
&> /
dev
/
null
22
if
[
$?
-gt
0
];
then
23
stat_fail
24
else
25
rm_daemon kdm
26
stat_done
27
fi
28
;;
29
restart
)
30
$0
stop
31
sleep
1
32
$0
start
33
;;
34
*)
35
echo
"usage:
$0
{start|stop|restart}"
36
;;
37
esac
38
exit
0