Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Fix creation of systemd service
Browse files Browse the repository at this point in the history
 - Bump cookbook version to `0.3.0`
 - Move `description`, `after` and `condition_path_exists` under
   `unit` section
  • Loading branch information
dmitry-g committed Apr 12, 2018
1 parent cfbb0fc commit 686b249
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Installs/Configures exabgp'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
version '0.3.0'

supports 'ubuntu', '>= 12.04'
supports 'centos', '>= 6.0'
Expand Down
8 changes: 5 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@
end unless systemd_enabled

systemd_service 'exabgp' do
description 'ExaBGP service'
after node[:exabgp][:systemd][:after]
condition_path_exists '/etc/exabgp/exabgp.conf'
unit do
description 'ExaBGP service'
after node[:exabgp][:systemd][:after]
condition_path_exists '/etc/exabgp/exabgp.conf'
end

service do
environment 'exabgp_daemon_daemonize' => 'false'
Expand Down

0 comments on commit 686b249

Please sign in to comment.