Добавлен юнит для systemd
authorRoman Bazalevsky <rvb@rvb.name>
Thu, 19 May 2016 17:07:56 +0000 (20:07 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Thu, 19 May 2016 17:07:56 +0000 (20:07 +0300)
systemd/weathermon.service [new file with mode: 0644]

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