solved: modified "rc.dualserver". Removed the "-d" from "Start dualserver:" section. All good now.
WAS:
Start dualserver:
dualserver_start() {
${EXEFILE} -d -i ${INIFILE} -l ${LOGFILE} -s ${STATEFILE} -n ${ICONFILE}
sleep 1
getpid
if [ -n "$pidnum" ]; then
echo "Dual Server started"
else
echo "Dual Server failed to start"
fi
}
MODIFIED TO:
dualserver_start() {
${EXEFILE} -i ${INIFILE} -l ${LOGFILE} -s ${STATEFILE} -n ${ICONFILE}
sleep 1
getpid
if [ -n "$pidnum" ]; then
echo "Dual Server started"
else
echo "Dual Server failed to start"
fi
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
systemd[1]: Starting Dual DHCP DNS Server...
dualserverd[798]: Error: Invalid Argument /opt/dualserver/dualserver.png
Starting on a command line works perfectly, however once demonizing, "dualserverd" will not run.
solved: modified "rc.dualserver". Removed the "-d" from "Start dualserver:" section. All good now.
WAS:
Start dualserver:
dualserver_start() {
${EXEFILE} -d -i ${INIFILE} -l ${LOGFILE} -s ${STATEFILE} -n ${ICONFILE}
sleep 1
getpid
if [ -n "$pidnum" ]; then
echo "Dual Server started"
else
echo "Dual Server failed to start"
fi
}
MODIFIED TO:
dualserver_start() {
${EXEFILE} -i ${INIFILE} -l ${LOGFILE} -s ${STATEFILE} -n ${ICONFILE}
sleep 1
getpid
if [ -n "$pidnum" ]; then
echo "Dual Server started"
else
echo "Dual Server failed to start"
fi
}