From e47039f4c6bd8d3d21d588211290385aa117e720 Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Thu, 19 May 2016 20:07:56 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?utf8?q?=20=D1=8E=D0=BD=D0=B8=D1=82=20=D0=B4=D0=BB=D1=8F=20systemd?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- systemd/weathermon.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/weathermon.service 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 -- 2.34.1