lib/tomo/plugin/sidekiq/tasks.rb in tomo-plugin-sidekiq-1.0.1 vs lib/tomo/plugin/sidekiq/tasks.rb in tomo-plugin-sidekiq-1.0.2

- old
+ new

@@ -17,13 +17,11 @@ remote.run "systemctl", "--user", action, service.name end end def log - remote.attach "journalctl", "-q", - raw("--user-unit=#{service.name.shellescape}"), - *settings[:run_args] + remote.attach "journalctl", "-q", raw("--user-unit=#{service.name.shellescape}"), *settings[:run_args] end private def service @@ -33,12 +31,10 @@ paths.sidekiq_systemd_service ) end def linger_must_be_enabled! - linger_users = remote.list_files( - "/var/lib/systemd/linger", raise_on_error: false - ) + linger_users = remote.list_files("/var/lib/systemd/linger", raise_on_error: false) return if dry_run? || linger_users.include?(remote.host.user) die <<~ERROR.strip Linger must be enabled for the #{remote.host.user} user in order for sidekiq to stay running in the background via systemd. Run the following