Browse Source

Add systemd services

rorist 9 months ago
parent
commit
ae1171d646

+ 10 - 0
systemd/info-beamer.service

@@ -0,0 +1,10 @@
+[Unit]
+Description=run info beamer
+
+[Service]
+User=root
+ExecStart=/opt/info/info-beamer /home/pi/screen
+
+[Install]
+WantedBy=multi-user.target
+

+ 6 - 0
systemd/screend-watcher.path

@@ -0,0 +1,6 @@
+[Path]
+PathModified=/home/pi/screen/screend.py
+
+[Install]
+WantedBy=multi-user.target
+

+ 11 - 0
systemd/screend-watcher.service

@@ -0,0 +1,11 @@
+[Unit]
+Description=screend restarter
+After=network.target
+
+[Service]
+Type=oneshot
+ExecStart=/bin/systemctl restart screend
+
+[Install]
+WantedBy=multi-user.target
+

+ 11 - 0
systemd/screend.service

@@ -0,0 +1,11 @@
+[Unit]
+Description=run info screen management daemon
+
+[Service]
+User=pi
+ExecStart=/home/pi/screen/screend.py
+WorkingDirectory=/home/pi/screen
+
+[Install]
+WantedBy=multi-user.target
+