Добавлен юнит для systemd
[weathermon.git] / systemd / weathermon.service
diff --git a/systemd/weathermon.service b/systemd/weathermon.service
new file mode 100644 (file)
index 0000000..6212a08
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=Weather Station Monitor 
+Requires=network.target mysql.service
+After=network.target
+
+[Service]
+User=root
+Type=simple
+ExecStart=/usr/local/bin/weathermon
+Restart=always
+RestartSec=30s
+
+[Install]
+WantedBy=multi-user.target