mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
examples: Avoid bashism in perfcount.init.
This fixes bug #6000. Thanks to the Debian Samba package maintainers for providing the patch! Remove trailing whitespaces. Karolin
This commit is contained in:
parent
6752d78e94
commit
73875cd344
@ -21,15 +21,15 @@
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
killproc()
|
||||
killproc()
|
||||
{
|
||||
pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
|
||||
if [ "$pid" != "" ]; then
|
||||
if [ -z "$pid" ]; then
|
||||
kill $pid
|
||||
fi
|
||||
}
|
||||
|
||||
# Start/stop processes
|
||||
# Start/stop processes
|
||||
|
||||
case "$1"
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user