repo.or.cz
/
buildroot-gz.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git]
/
package
/
sysklogd
/
S01logging
blob
1cbfe869fae958cb832ea75ccc40f6d2c944799b
1
#!/bin/sh
2
3
case
"
$1
"
in
4
start
)
5
printf
"Starting logging: "
6
/
sbin
/
syslogd
-m
0
7
/
sbin
/
klogd
8
echo
"OK"
9
;;
10
stop
)
11
printf
"Stopping logging: "
12
[
-f
/
var
/
run
/
klogd.pid
] &&
kill
`cat /var/run/klogd.pid`
13
[
-f
/
var
/
run
/
syslogd.pid
] &&
kill
`cat /var/run/syslogd.pid`
14
echo
"OK"
15
;;
16
restart|reload
)
17
$0
stop
18
$0
start
19
;;
20
*)
21
echo
"Usage:
$0
{start|stop|restart}"
22
exit
1
23
esac
24
25
exit
$?