-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using systemd, the pid files are actually not important so they can be dropped. The the WorkingDirectory is set to ~ which will resolve to the user's home directory. That means systemd will ensure it is mounted before starting services. Pulp itself doesn't use it so it's a cheap way for a more reliable service start. Subscribing to [email protected] is another bugfix to ensure all workers use the correct service definition. Explicitly setting the type and group is more for consistency and doesn't actually change anything.
- Loading branch information
Showing
5 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# configure, enable, and start pulpcore services | ||
# @api private | ||
class pulpcore::service { | ||
|
||
systemd::unit_file { 'pulpcore-api.service': | ||
content => template('pulpcore/pulpcore-api.service.erb'), | ||
active => true, | ||
|
@@ -26,9 +25,10 @@ | |
|
||
Integer[1, $pulpcore::worker_count].each |$n| { | ||
service { "pulpcore-worker@${n}.service": | ||
ensure => running, | ||
enable => true, | ||
require => [Systemd::Unit_file['[email protected]'], Class['systemd::systemctl::daemon_reload']], | ||
ensure => running, | ||
enable => true, | ||
require => Class['systemd::systemctl::daemon_reload'], | ||
subscribe => Systemd::Unit_file['[email protected]'], | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters