0.01
No release in over 3 years
Low commit activity in last 3 years
Mina plugin for systemd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0
~> 3.0

Runtime

~> 1.0.0
 Project Readme

Mina::Systemd

This is wrapper for systemd service manager for mina

Installation

Add this line to your application's Gemfile:

gem 'mina-systemd', require: false

And then execute:

$ bundle

Usage

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']

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.