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]
/
scrobby-git
/
scrobby.init
blob
8c0f0300b1cd4fe1e93bd15d1965062720a5357e
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
PID
=
`pidof -o %PPID /usr/bin/scrobby`
7
case
"
$1
"
in
8
start
)
9
stat_busy
"Starting Scrobby"
10
/
usr
/
bin
/
scrobby
11
if
[
$?
-gt
0
];
then
12
stat_fail
13
else
14
stat_done
15
add_daemon scrobby
16
fi
17
18
;;
19
stop
)
20
stat_busy
"Stoping Scrobby"
21
[ !
-z
"
$PID
"
] &&
kill
$PID
&> /
dev
/
null
22
if
[
$?
-gt
0
];
then
23
stat_fail
24
else
25
stat_done
26
rm_daemon scrobby
27
fi
28
;;
29
restart
)
30
$0
stop
31
sleep
1
32
$0
start
33
;;
34
*)
35
echo
"usage:
$0
{start|stop|restart}"
36
esac