Modified init-functions so that pidofproc properly returns non-zero
This commit is contained in:
@@ -117,7 +117,9 @@ pidofproc() {
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -r "$pidfile" ]; then
|
||||
if [ -n "$pidfile" ] && [ ! -r "$pidfile" ]; then
|
||||
return 1
|
||||
elif [ -n "$pidfile" ]; then
|
||||
pids=$(head -1 $pidfile|sed 's/ \+//g')
|
||||
else
|
||||
pids=$(pidof "$pathname")
|
||||
|
||||
Reference in New Issue
Block a user