aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--etc/logging.service9
2 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c76415b..c6bc088 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,7 @@ install: lib/libmidbro.so
cp -p lib/libmidbro.so "$(PREFIX)/lib/"
cp -p script/mid.bro "$(PREFIX)/share/midbro"
cp -p etc/midbro.service "/etc/systemd/system"
+ cp -p etc/logging.service "/etc/systemd/system"
uninstall:
rm -f "$(PREFIX)/include/midbro.h"
diff --git a/etc/logging.service b/etc/logging.service
new file mode 100644
index 0000000..e2d7c93
--- /dev/null
+++ b/etc/logging.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=logging
+
+[Service]
+ExecStart=/home/pi/midbro/script/logging.py /home/pi/data/log/sysinfo.log
+Restart=always
+
+[Install]
+WantedBy=multi-user.target