This is wrapper for systemd
service manager for mina
Add this line to your application's Gemfile:
gem 'mina-systemd', require: false
And then execute:
$ bundle
in deploy.rb
require 'mina/systemd'
task deploy: :environment do
deploy do
...
on :launch do
invoke :'systemctl:restart', 'puma'
end
end
end
Call it as mina task:
mina systemctl:stop['puma']
if you use zsh add noglob
noglob mina systemctl:status['puma']
Bug reports and pull requests are welcome on GitHub at https://github.com/alexkojin/mina-systemd. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.