From f60088d74772ab9db99d6fda4085549abc5a5a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 8 Feb 2019 18:06:28 +0100 Subject: [PATCH] Don't fail if systemd unit fail to stop --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index d8fdb5a..c76eb33 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -100,7 +100,7 @@ ynh_add_uwsgi_service () { cp ../conf/uwsgi-app@override.service /etc/systemd/system/uwsgi-app@$app.service.d/override.conf systemctl daemon-reload - systemctl stop "uwsgi-app@$app.service" + systemctl stop "uwsgi-app@$app.service" || true systemctl enable "uwsgi-app@$app.service" systemctl start "uwsgi-app@$app.service"