aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mosquitto-server/files/etc/systemd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-06-17 13:11:47 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-06-17 13:11:47 +0200
commite2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2 (patch)
tree09f527771ffb9af015d05f494ec7ccbccbe62793 /ansible/roles/mosquitto-server/files/etc/systemd
parent0f9a79c433f26ef12c8e22a97c41d755ce3b8590 (diff)
downloadinfra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.tar.gz
infra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.tar.bz2
infra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.tar.xz
infra-e2e9cfd16ab06d8ad30ebd5cc9f66ac46219b4b2.zip
o Adding mosquitto-server.
Diffstat (limited to 'ansible/roles/mosquitto-server/files/etc/systemd')
-rw-r--r--ansible/roles/mosquitto-server/files/etc/systemd/system/mosquitto.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible/roles/mosquitto-server/files/etc/systemd/system/mosquitto.service b/ansible/roles/mosquitto-server/files/etc/systemd/system/mosquitto.service
new file mode 100644
index 0000000..cfe1565
--- /dev/null
+++ b/ansible/roles/mosquitto-server/files/etc/systemd/system/mosquitto.service
@@ -0,0 +1,10 @@
+[Service]
+ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
+Restart=always
+User=mosquitto
+
+[Unit]
+After=network-online.target
+
+[Install]
+WantedBy=multi-user.target