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 Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git]
/
ramlog
/
ramlog.rc
blob
1829b9be01b84c810dd952fd4b0bee9e30f73ec7
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
case
"
$1
"
in
7
start
)
8
stat_busy
"Starting Ramlog"
9
/
etc
/
ramlog
/
ramlog start
> /
dev
/
null
10
if
[
$?
-gt
0
];
then
11
stat_fail
12
else
13
add_daemon ramlog
14
stat_done
15
fi
16
;;
17
stop
)
18
stat_busy
"Stopping Ramlog"
19
/
etc
/
ramlog
/
ramlog stop
> /
dev
/
null
20
if
[
$?
-gt
0
];
then
21
stat_fail
22
else
23
rm_daemon ramlog
24
stat_done
25
fi
26
;;
27
restart
)
28
$0
stop
29
sleep
1
30
$0
start
31
;;
32
*)
33
echo
"usage:
$0
{start|stop|restart}"
34
esac
35
exit
0
36