From: Roman Bazalevsky Date: Thu, 19 May 2016 17:07:56 +0000 (+0300) Subject: Добавлен юнит для systemd X-Git-Url: https://git.rvb.name/weathermon.git/commitdiff_plain/e47039f4c6bd8d3d21d588211290385aa117e720?hp=-c Добавлен юнит для systemd --- e47039f4c6bd8d3d21d588211290385aa117e720 diff --git a/systemd/weathermon.service b/systemd/weathermon.service new file mode 100644 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