From 5976f9242b6c6ff93cec17c55d2842f5691d5ec8 Mon Sep 17 00:00:00 2001 From: maminjie Date: Sat, 5 Jun 2021 16:27:44 +0800 Subject: [PATCH] Repair status failure after stopping service --- lsyncd.service | 1 + lsyncd.spec | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lsyncd.service b/lsyncd.service index 1105cca..5c43641 100644 --- a/lsyncd.service +++ b/lsyncd.service @@ -8,6 +8,7 @@ Type=simple EnvironmentFile=-/etc/sysconfig/lsyncd ExecStart=/usr/bin/lsyncd -nodaemon $LSYNCD_OPTIONS Restart=on-failure +SuccessExitStatus=143 [Install] WantedBy=multi-user.target diff --git a/lsyncd.spec b/lsyncd.spec index 5e26600..de924bd 100644 --- a/lsyncd.spec +++ b/lsyncd.spec @@ -4,7 +4,7 @@ %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: lsyncd Version: 2.2.3 -Release: 1 +Release: 2 Summary: File change monitoring and synchronization daemon License: GPLv2+ URL: https://github.com/axkibe/lsyncd/ @@ -74,5 +74,8 @@ make %{_unitdir}/lsyncd.service %changelog +* Sat Jun 05 2021 maminjie - 2.2.3-2 +- Repair status failure after stopping service + * Wed Jan 20 2021 chengzihan - 2.2.3-1 - Package init