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

Commit

Permalink
Merge pull request #8 from dmitry-g/fix/systemd_service_unit
Browse files Browse the repository at this point in the history
Fix creation of systemd service
  • Loading branch information
dmitry-g authored Apr 12, 2018
2 parents cfbb0fc + b8c4513 commit 19e4919
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
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'

depends 'python'
depends 'runit'
depends 'systemd'
depends 'systemd', '~> 3.2.2'
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 19e4919

Please sign in to comment.