summarylogtreecommitdiffstats
path: root/smartmeter.service
diff options
context:
space:
mode:
authorAlexander Pohl2021-05-29 10:28:37 +0200
committerAlexander Pohl2021-05-29 10:28:37 +0200
commit0386cc28bb3b083668ebdab3f718cc7eae7b4baa (patch)
tree614c9b8a534cf959e08dcd14f477dcb31cedec4e /smartmeter.service
parent9688bb6d3612c1f21b3a0c6b820aa4a547ee7cd8 (diff)
downloadaur-0386cc28bb3b083668ebdab3f718cc7eae7b4baa.tar.gz
add systemd service and sysusers file
Diffstat (limited to 'smartmeter.service')
-rw-r--r--smartmeter.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/smartmeter.service b/smartmeter.service
new file mode 100644
index 000000000000..8359362fd3f0
--- /dev/null
+++ b/smartmeter.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Smartmeter
+After=syslog.target
+
+[Service]
+ExecStart=/usr/bin/smartmeter -c /etc/smartmeter.conf
+User=smartmeter
+Group=smartmeter
+NoNewPrivileges=yes
+ProtectSystem=full
+ProtectHome=true
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target