Whitespace and minor style fixes

This commit is contained in:
Richard Hansen 2020-05-27 18:18:26 -04:00
parent f425cea2d1
commit cecbaba3e0

View file

@ -36,7 +36,7 @@ case "$1" in
start)
# Start daemon.
DELAY=`grep -v '^\s*#' $CONF | grep -i -m 1 "daemon" | awk -F '=' '{print $2}'`
if [ -z "$DELAY" ] ; then
if [ -z "$DELAY" ]; then
DELAY="-daemon 300"
else
DELAY=''
@ -52,7 +52,7 @@ case "$1" in
stop)
# Stop daemon.
echo -n "Shutting down ddclient: "
if [ -n "$PID" ] ; then
if [ -n "$PID" ]; then
if [ "$system" = "fedora" ] || [ "$system" = "redhat" ]; then
killproc $program
else
@ -71,10 +71,8 @@ case "$1" in
if [ "$system" = "fedora" ] || [ "$system" = "redhat" ]; then
status $program
else
if test "$PID"
then
for p in $PID
do
if test "$PID"; then
for p in $PID; do
echo "$program (pid $p) is running"
done
else
@ -88,4 +86,3 @@ case "$1" in
esac
exit 0