Ady92100 wrote: ↑Sunday 01 October 2017 20:36
Hello Jumbotroll
I may have been not clear.
I know that the logfile is i located in /var/packages/domoticz/scripts
What i would like to do, it's to change the location of the logfile
In domotics.sh you have these lines
USERNAME=pi
DAEMON=/home/$USERNAME/domoticz/$NAME
#DAEMON_ARGS="-daemon -www 8080 -log /tmp/domoticz.txt"
#DAEMON_ARGS="-daemon -www 8080 -syslog"
DAEMON_ARGS="-daemon -www 8080"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
I want to change the parameter -log (/tmp/domoticz.txt) of the line #DAEMON_ARGS="-daemon -www 8080 -log /tmp/domoticz.txt"
to write the log somewhere else.
but I haven't found the file domoticz.sh to modify this parameter.
How can I do that ?
Thanks for your help.
There is no domoticz.sh in use on synology
In the
start-stop-status script you can change the location for the log file.
It's located in:
/var/packages/domoticz/scripts
Edit start-stop-status script and then stop/start domoticz from package center.
# Package
PACKAGE="domoticz"
DNAME="Domoticz"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PATH="${INSTALL_DIR}/bin:${PATH}"
RUNAS="root"
#USER="domoticz"
DOMOTICZ="${INSTALL_DIR}/bin/domoticz"
WWWROOT="${INSTALL_DIR}/www/"
PID_FILE="${INSTALL_DIR}/var/domoticz.pid"
LOGFILE="${INSTALL_DIR}/var/domoticz.log"
#LOGFILE="/volumeUSB1/domoticz.log"
DB_FILE="${INSTALL_DIR}/var/domoticz.db"
#DB_FILE="/volumeUSB1/domoticz.db"
PORT="8084"