Why not use the following code:
if test ! -d $(dirname $PID); then mkdir $(dirname $PID) chown -R zabbix:zabbix $(dirname $PID) fi
safes a variable, not a big deal, but still.
Why not use the following code:
if test ! -d $(dirname $PID); then
mkdir $(dirname $PID)
chown -R zabbix:zabbix $(dirname $PID)
fi
safes a variable, not a big deal, but still.