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 Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git]
/
synce-odccm
/
synce-odccm.rc
blob
61e71a77d2d67b32c4433d9a944c6d1d54d9acca
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
case
"
$1
"
in
7
start
)
8
stat_busy
"Starting SynCE odccm daemon"
9
/
usr
/
sbin
/
odccm
>/
dev
/
null
2
>/
dev
/
null
10
if
[
$?
-gt
0
];
then
11
stat_fail
12
else
13
add_daemon synce-odccm
14
stat_done
15
fi
16
;;
17
stop
)
18
stat_busy
"Stopping SynCE odccm daemon"
19
PID
=
`pidof odccm`
20
if
[
-z
$PID
];
then
21
stat_fail
22
else
23
kill
$PID
24
rm_daemon synce-odccm
25
stat_done
26
fi
27
;;
28
restart
)
29
$0
stop
30
sleep
1
31
$0
start
32
;;
33
*)
34
echo
"usage:
$0
{start|stop|restart}"
35
;;
36
esac
37
exit
0