From 2b33c814332d38f12d3e72d8da254aae72ef9a97 Mon Sep 17 00:00:00 2001 From: guoxiaoqi Date: Tue, 7 Jan 2020 20:02:23 +0800 Subject: [PATCH] update service --- haveged.service | 10 +++------- haveged.spec | 5 ++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/haveged.service b/haveged.service index f746084..6d5e297 100644 --- a/haveged.service +++ b/haveged.service @@ -1,13 +1,9 @@ -[Unit] -Description=Entropy Daemon based on the HAVEGE algorithm -Documentation=man:haveged(8) http://www.issihosts.com/haveged/ - [Service] +Environment=PARAMETER=-w 1024 -v 1 --Foreground +ExecStart=/usr/sbin/haveged ${PARAMETER} Type=simple -ExecStart=/usr/sbin/haveged -w 1024 -v 1 --Foreground -SuccessExitStatus=143 +SuccessExitStatus=137 143 Restart=always [Install] WantedBy=multi-user.target - diff --git a/haveged.spec b/haveged.spec index fd69208..b1e5571 100644 --- a/haveged.spec +++ b/haveged.spec @@ -3,7 +3,7 @@ Summary: A Linux entropy source using the HAVEGE algorithm Name: haveged Version: 1.9.8 -Release: 1 +Release: 2 License: GPLv3+ URL: https://github.com/jirka-h/haveged Source0: https://github.com/jirka-h/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz @@ -101,6 +101,9 @@ rm -rf %{buildroot} %{_mandir}/man3/libhavege.3* %changelog +* Tue Jan 7 2020 openEuler Buildteam - 1.9.8-2 +- update service + * Mon Oct 14 2019 openEuler Buildteam - 1.9.8-1 - update to 1.9.8-1