From e6fc2e4f9c8d127db8f5014aeab23bf1bdb051e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Wojni=C5=82owicz?= Date: Sun, 9 Jun 2024 16:54:41 +0200 Subject: [PATCH] Add systemd service --- watchers/service/aw-awatcher.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 watchers/service/aw-awatcher.service diff --git a/watchers/service/aw-awatcher.service b/watchers/service/aw-awatcher.service new file mode 100644 index 0000000..f9c154c --- /dev/null +++ b/watchers/service/aw-awatcher.service @@ -0,0 +1,17 @@ +[Service] +Type=simple +TimeoutStartSec=120 +ExecStartPre=/bin/sleep 5 +ExecStart=aw-awatcher +Restart=always +RestartSec=5 +RestartSteps=2 +RestartMaxDelaySec=15 + +[Unit] +Description=AWatcher +After=aw-server.service graphical-session.target +Requires=aw-server.service + +[Install] +WantedBy=graphical-session.target \ No newline at end of file