From 54b706d36efeb7b3a487dd4d17b5778a045d7fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=96=87=E6=AD=A6?= Date: Tue, 24 Aug 2021 16:33:09 +0800 Subject: [PATCH] Script: Refine CentOS7 service script to restart SRS. v4.0.190 (#2552) --- trunk/doc/CHANGELOG.md | 1 + trunk/src/core/srs_core_version4.hpp | 2 +- trunk/usr/lib/systemd/system/srs.service | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index a0a532c1f..47626038a 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -8,6 +8,7 @@ The changelog for SRS. ## SRS 4.0 Changelog +* v4.0, 2021-10-30, Merge [#2552](https://github.com/ossrs/srs/pull/2552): Script: Refine CentOS7 service script to restart SRS. v4.0.190 * v4.0, 2021-10-30, Merge [#2397](https://github.com/ossrs/srs/pull/2397): SRTP: Patch libsrtp2 to fix GCC10 build fail. v4.0.189 * v4.0, 2021-10-30, Merge [#2284](https://github.com/ossrs/srs/pull/2284): Forward: Fast quit when cycle fail. v4.0.188 * v4.0, 2021-10-28, Merge [#2186](https://github.com/ossrs/srs/pull/2186): Gop: Ignore zero timestamp when shrinking. v4.0.187 diff --git a/trunk/src/core/srs_core_version4.hpp b/trunk/src/core/srs_core_version4.hpp index 02549b6c9..891b0e99f 100644 --- a/trunk/src/core/srs_core_version4.hpp +++ b/trunk/src/core/srs_core_version4.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 4 #define VERSION_MINOR 0 -#define VERSION_REVISION 189 +#define VERSION_REVISION 190 #endif diff --git a/trunk/usr/lib/systemd/system/srs.service b/trunk/usr/lib/systemd/system/srs.service index b76bc930a..0a27b9a96 100644 --- a/trunk/usr/lib/systemd/system/srs.service +++ b/trunk/usr/lib/systemd/system/srs.service @@ -4,6 +4,7 @@ After=network.target [Service] Type=forking +Restart=always ExecStart=/etc/init.d/srs start ExecReload=/etc/init.d/srs reload ExecStop=/etc/init.d/srs stop