projects
/
weathermon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
decb672
)
Добавлен юнит для systemd
author
Roman Bazalevsky
<rvb@rvb.name>
Thu, 19 May 2016 17:07:56 +0000
(20:07 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Thu, 19 May 2016 17:07:56 +0000
(20:07 +0300)
systemd/weathermon.service
[new file with mode: 0644]
patch
|
blob
diff --git a/systemd/weathermon.service
b/systemd/weathermon.service
new file mode 100644
(file)
index 0000000..
6212a08
--- /dev/null
+++ b/
systemd/weathermon.service
@@ -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