module FPM::Fry::Plugin::Systemd

Automatically adds the appropriate maintainer scripts for every systemd unit.

@note experimental

@example in a recipe

plugin 'systemd' # no options required, just install your units in /lib/systemd/system

Constants

INSTANTIATED_UNITS

@api private

VALID_UNITS

@api private

Public Class Methods

apply(builder) click to toggle source
# File lib/fpm/fry/plugin/systemd.rb, line 68
def self.apply(builder)
  return unless builder.plugin('init').systemd?
  builder.plugin('script_helper') do |sh|
    builder.output_hooks << Callback.new(sh)
  end
end