Dear
@captainkent thank you for your effort to help me and for editing the file for me.
But unfortunately, perhabs I am so dump that I couldn't manage to autostart domoticz :(
Normally it is running OK with ./domoticz command
root@domoticz:/home/domoticz/domoticz # ./domoticz
2018-01-26 13:58:32.117 Domoticz V3.8849 (c)2012-2018 GizMoCuz
2018-01-26 13:58:32.117 Build Hash: 546758a3, Date: 2018-01-25 11:06:56
2018-01-26 13:58:32.117 Startup Path: /usr/home/domoticz/domoticz/
2018-01-26 13:58:32.157 PluginSystem: Started, Python version '3.5.4'.
2018-01-26 13:58:32.158 Active notification Subsystems: gcm, http (2/14)
2018-01-26 13:58:32.159 WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2018-01-26 13:58:32.161 WebServer(SSL) started on address: 0.0.0.0 with port 443
2018-01-26 13:58:32.161 Proxymanager started.
2018-01-26 13:58:32.161 Starting shared server on: 0.0.0.0:6144
2018-01-26 13:58:32.161 TCPServer: shared server started...
2018-01-26 13:58:32.161 RxQueue: queue worker started...
2018-01-26 13:58:34.166 EventSystem: reset all events...
2018-01-26 13:58:34.166 EventSystem: reset all device statuses...
2018-01-26 13:58:34.178 Python EventSystem: Initalizing event module.
2018-01-26 13:58:34.179 EventSystem: Queue thread started...
2018-01-26 13:58:34.179 EventSystem: Started
2018-01-26 13:58:34.642 PluginSystem: Entering work loop.
My domoticz directory :
root@domoticz:/home/domoticz/domoticz # ls
.git domoticz.sh notifications
.gitattributes dzVents plugins
.github getgit.cmake push
.gitignore hardware README.md
.travis.yml History.txt scripts
appversion.default httpclient server_cert.pem
appversion.h INSTALL.md smtpclient
appversion.h.txt json sqlite
appveyor.yml libusb tcpserver
cmake_install.cmake License.txt tinyxpath
CMakeCache.txt lua tools
CMakeFiles main updatebeta
CMakeLists.txt makebeta updatedomo
Config Makefile updaterelease
CPackConfig.cmake makerelease webserver
CPackSourceConfig.cmake Manual www
domoticz MQTT zip
domoticz.db msbuild zlib
domoticz.db file is here so I edited that part on the file you sent...
My edited version : ( I tried the username as root and domoticz )
#! /bin/sh
#
#
# PROVIDE: domoticz
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable domoticz:
#
#domoticz_enable (bool): set to "YES" to start domotics at boot
#domoticz_dbdir (str): Default to "/var/db/domoticz"
# domoticz database directory
#domoticz_user (str): Default to www, user for starting domoticz
#domoticz_group (str): Default to www, group for stating domoticz
#domoticz_pidfile (str): Custum PID file path and name
# Default to "/var/run/domoticz/${hostname}.pid".
#domoticz_args (str): Custom additional arguments to be passed
#
. /etc/rc.subr
name="domoticz"
rcvar="domoticz_enable"
stop_cmd="${name}_stop"
load_rc_config $name
: ${domoticz_dbdir:="/home/domoticz/domoticz"}
: ${domoticz_user:=domoticz}
: ${domoticz_group:=domoticz}
: ${domoticz_enable:=NO}
: ${domoticz_directory:=/home/domoticz/domoticz/domoticz}
: ${domoticz_args:="-syslog -daemon"}
#: ${domoticz_args:="-syslog -dbase /home/domoticz/domoticz/domoticz.db -daemon -wwwbind 0.0.0.0 -p /var/run/domoticz_1.pid"}
pidfile=${domoticz_pidfile:-"/var/run/domoticz/${hostname}.pid"}
command="/home/domoticz/domoticz/domoticz"
command_args="-dbase ${domoticz_dbdir}/domoticz.db -pidfile ${pidfile} ${domoticz_args}"
domoticz_stop() {
if [ -e "${pidfile}" ]; then
echo "Stopping ${name}..."
kill -9 `cat ${pidfile}`
rm ${pidfile}
else
run_rc_command "$1"
-----------------------------------------------------------------------
rc.conf file is :
portmap_enable="NO"
sshd_enable="NO"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
hostname="domoticz"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
domoticz_enable="YES"
--------------------------------------------------------------
What could be the problem?