25 lines
743 B
Diff
25 lines
743 B
Diff
From 39d7026876e29020dde52655927e73bf6f98f5ff Mon Sep 17 00:00:00 2001
|
|
From: chengyechun <chengyechun1@huawei.com>
|
|
Date: Wed, 3 Jan 2024 03:18:36 +0000
|
|
Subject: [PATCH] huawei-proftpd-service-add-restart
|
|
|
|
---
|
|
contrib/dist/rpm/proftpd.service | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/contrib/dist/rpm/proftpd.service b/contrib/dist/rpm/proftpd.service
|
|
index 6c81db3..14ae9e5 100644
|
|
--- a/contrib/dist/rpm/proftpd.service
|
|
+++ b/contrib/dist/rpm/proftpd.service
|
|
@@ -11,6 +11,7 @@ ExecStartPre = /usr/sbin/proftpd --configtest
|
|
ExecStart = /usr/sbin/proftpd --nodaemon $PROFTPD_OPTIONS
|
|
ExecReload = /bin/kill -HUP $MAINPID
|
|
PIDFile = /run/proftpd/proftpd.pid
|
|
+Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy = multi-user.target
|
|
--
|
|
2.33.0
|
|
|