Wait for network to be up before starting

OBS-URL: https://build.opensuse.org/package/show/server:mail/rspamd?expand=0&rev=51
This commit is contained in:
Bernhard M. Wiedemann 2020-11-26 13:16:45 +00:00 committed by Git OBS Bridge
parent e7da101e6a
commit d406df4269
2 changed files with 14 additions and 4 deletions

View File

@ -1,12 +1,17 @@
Index: rspamd-1.7.9/rspamd.service
Ensure that network is up when rspamd is started
otherwise, it can fail to reach remote rspamd hosts
Index: rspamd-2.6/rspamd.service
===================================================================
--- rspamd-1.7.9.orig/rspamd.service
+++ rspamd-1.7.9/rspamd.service
@@ -1,6 +1,6 @@
--- rspamd-2.6.orig/rspamd.service
+++ rspamd-2.6/rspamd.service
@@ -1,6 +1,7 @@
[Unit]
Description=rapid spam filtering system
-After=nss-lookup.target network-online.target
+After=nss-lookup.target network-online.target redis.target
+Wants=network-online.target
Documentation=https://rspamd.com/doc/
[Service]

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 26 12:05:28 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
- Wait for network to be up before starting
-------------------------------------------------------------------
Fri Oct 9 17:51:10 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>