Commit 59794a47 authored by Christopher Huhn's avatar Christopher Huhn
Browse files

prevent startup of in systemd-timer mode while is running.

parent dfabec4f
......@@ -2,6 +2,11 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## Unreleased
### Changed
- prevent startup of `chef-client.service` in systemd-timer mode while `dpkg` is running.
## [1.67.1] - 2022-06-09
### Added
......
......@@ -156,7 +156,9 @@ if node['sys']['chef']['init_style'] == 'systemd-timer'
content(
'Unit' => {
'Description' => 'Chef Infra Client',
'After' => 'network.target auditd.service'
'After' => 'network.target auditd.service',
# do not start while dpkg is running:
'ConditionPathExists' => '!/var/lib/dpkg/lock'
},
'Service' => {
'Type' => 'oneshot',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment