Skip to content

Commit

Permalink
rename mqtt_input service to emoncms_mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed Feb 6, 2019
1 parent a8cbd78 commit 897c67b
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Systemd unit file for mqtt input script

# INSTALL:
# sudo ln -s /var/www/emoncms/scripts/services/mqtt_input/mqtt_input.service /lib/systemd/system
# sudo ln -s /var/www/emoncms/scripts/services/emoncms_mqtt/emoncms_mqtt.service /lib/systemd/system

# RUN AT STARTUP
# sudo systemctl daemon-reload
# sudo systemctl enable mqtt_input.service
# sudo systemctl enable emoncms_mqtt.service

# START / STOP With:
# sudo systemctl start mqtt_input
# sudo systemctl stop mqtt_input
# sudo systemctl start emoncms_mqtt
# sudo systemctl stop emoncms_mqtt

# VIEW STATUS / LOG
# If Using Syslog:
# sudo systemctl status mqtt_input -n50
# sudo systemctl status emoncms_mqtt -n50
# where -nX is the number of log lines to view
# sudo journalctl -f -u mqtt_input
# sudo journalctl -f -u emoncms_mqtt
# Otherwise:
# Specify
#StandardOutput=file:/var/log/mqtt_input.log
# tail -f /var/log/mqtt_input.log
#StandardOutput=file:/var/log/emoncms_mqtt.log
# tail -f /var/log/emoncms_mqtt.log

###
#
Expand All @@ -33,15 +33,15 @@
###

[Unit]
Description=Emoncms mqtt_input script
Description=Emoncms emoncms_mqtt script
Wants=mosquitto.service mysql.service redis.service
After=mosquitto.service mysql.service redis.service
Documentation=https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md

# Uncomment this line to use a dedicated log file for StdOut and StdErr.
# NOTE: only works in systemd v236+
# Debain "stretch" includes v232, "buster" includes v239
#StandardOutput=file:/var/log/mqtt_input.log
#StandardOutput=file:/var/log/emoncms_mqtt.log

[Service]
Type=idle
Expand All @@ -55,7 +55,7 @@ RestartSec=60
# Tag things in the log
# If you want to use the journal instead of the file above, uncomment SyslogIdentifier below
# View with: sudo journalctl -f -u feedwriter -o cat
SyslogIdentifier=mqtt_input
SyslogIdentifier=emoncms_mqtt

[Install]
WantedBy=multi-user.target

0 comments on commit 897c67b

Please sign in to comment.