forked from openenergymonitor/emonhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemonhub
51 lines (43 loc) · 1.5 KB
/
emonhub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## emonHub settings
# Edit this to configure the parameters used in
# the /etc/init.d/emonhub script.
# n.b. The emonhub install script currently overwrites
# this file, but creates a backup.
# This file should be deployed to /etc/default/emonhub
# unless you have edited the init.d file to give an
# alternate SYSCONF_PATH
# If started from the default systemd service file,
# the optional file /etc/default/emonhub.local
# is used after this file, and will override any
# settings defined here.
# Specify the directory in which emonhub.py is found:
EMONHUB_PATH=/usr/share/emonhub/
# Specify the full config file path:
EMONHUB_CONFIG=/home/pi/data/emonhub.conf
# Specify the full log file path:
# (see below for systemd note)
EMONHUB_LOG=/var/log/emonhub/emonhub.log
# With systemd, emonhub can use the journald service to log
# messages, you can then use commands such as:
#
# journalctl -u emonhub -f
#
# ... to follow log file output. See:
#
# https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs
#
# for more options.
#
# If you wish to use journald, and disable the EMONHUB_LOG,
# then place an entry like:
#
# SYSTEMD_EXTRA_ARGS=""
#
# in /etc/default/emonhub.local to override the setting below
# and prevent the emonhub git repository 'install' script
# clobbering your changes in future.
#
# If you are using $EMONHUB_LOG, then you must ensure this
# log file exists and is writable by the emonhub user.
#
SYSTEMD_EXTRA_ARGS="--logfile /var/log/emonhub/emonhub.log"