From f6516c7aae1a64fa1637e370d9e06597f80f7bdb Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 11 May 2026 13:07:08 +0100 Subject: [PATCH] systemd: add kill_signal support to service --- cookbooks/systemd/resources/service.rb | 1 + cookbooks/systemd/templates/default/service.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cookbooks/systemd/resources/service.rb b/cookbooks/systemd/resources/service.rb index 34d4e6c50..6d5be56e0 100644 --- a/cookbooks/systemd/resources/service.rb +++ b/cookbooks/systemd/resources/service.rb @@ -119,6 +119,7 @@ property :pid_file, String property :nice, Integer property :io_scheduling_class, [Integer, String] property :io_scheduling_priority, Integer +property :kill_signal, String property :kill_mode, String, :is => %w[control-group process mixed none] property :sandbox, [true, false, Hash] diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index eee220691..89eb3acf9 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -301,6 +301,9 @@ IOSchedulingClass=<%= @io_scheduling_class %> <% if @io_scheduling_priority -%> IOSchedulingPriority=<%= @io_scheduling_priority %> <% end -%> +<% if @kill_signal -%> +KillSignal=<%= @kill_signal %> +<% end -%> <% if @kill_mode -%> KillMode=<%= @kill_mode %> <% end -%> -- 2.47.3