From 79137b27ca56e9975e674eb0861f333be3259cf0 Mon Sep 17 00:00:00 2001 From: Danil Pismenny Date: Mon, 8 Nov 2021 13:54:16 +0300 Subject: [PATCH] [#28] Enable linger for user service type --- lib/capistrano/systemd/multiservice/user_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/capistrano/systemd/multiservice/user_service.rb b/lib/capistrano/systemd/multiservice/user_service.rb index f9f6a68..e68e597 100644 --- a/lib/capistrano/systemd/multiservice/user_service.rb +++ b/lib/capistrano/systemd/multiservice/user_service.rb @@ -20,6 +20,7 @@ def default_units_dir protected def setup_service(buf, src, dest) + backend.execute :loginctl, 'enable-linger' backend.upload! buf, dest end end