diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/fhem/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/fhem/files')
-rw-r--r-- | app-misc/fhem/files/fhem.cfg | 27 | ||||
-rw-r--r-- | app-misc/fhem/files/fhem.initd | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/app-misc/fhem/files/fhem.cfg b/app-misc/fhem/files/fhem.cfg new file mode 100644 index 000000000000..04f7ae9a4681 --- /dev/null +++ b/app-misc/fhem/files/fhem.cfg @@ -0,0 +1,27 @@ +attr global logfile ./log/fhem-%Y-%m.log +attr global pidfilename /run/fhem/fhem.pid +attr global modpath . +attr global statefile ./data/fhem.save +attr global verbose 3 +attr global updateInBackground + +define telnetPort telnet 7072 global + +define WEB FHEMWEB 8083 global + +define WEBphone FHEMWEB 8084 global +attr WEBphone stylesheetPrefix smallscreen + +define WEBtablet FHEMWEB 8085 global +attr WEBtablet stylesheetPrefix touchpad + +# Fake FileLog entry, to access the fhem log from FHEMWEB +define Logfile FileLog ./log/fhem-%Y-%m.log fakelog + +define autocreate autocreate +attr autocreate filelog ./data/%NAME-%Y.log + +define eventTypes eventTypes ./data/eventTypes.txt + +# Disable this to avoid looking for new USB devices on startup +define initialUsbCheck notify global:INITIALIZED usb create diff --git a/app-misc/fhem/files/fhem.initd b/app-misc/fhem/files/fhem.initd new file mode 100644 index 000000000000..424948719010 --- /dev/null +++ b/app-misc/fhem/files/fhem.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +home="/opt/fhem" +command="${home}/fhem.pl" +command_args="${home}/fhem.cfg" +command_group="fhem" +command_user="fhem" +name="FHEM" +pidfile_path="/run/fhem" +pidfile="${pidfile_path}/fhem.pid" +start_stop_daemon_args="--chdir ${home}" + +start_pre() { + checkpath -d -o "${command_user}:${command_group}" -q "${pidfile_path}" +} |