1
0
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:
Karolin Seeger 2009-01-05 14:54:28 +01:00
parent 6752d78e94
commit 73875cd344

View File

@ -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