Module: FPM::Fry::Plugin::Systemd

Defined in:
lib/fpm/fry/plugin/systemd.rb

Overview

Note:

experimental

Automatically adds the appropriate maintainer scripts for every systemd unit.

Examples:

in a recipe

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

Defined Under Namespace

Classes: Callback

Constant Summary collapse

VALID_UNITS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/\A[a-z_0-9\-]+@?\.(service|socket|timer)\z/
INSTANTIATED_UNITS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/\A[a-z_0-9\-]+@\.(service|socket|timer)\z/

Class Method Summary collapse

Class Method Details

.apply(builder) ⇒ Object



68
69
70
71
72
73
# 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