-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Reload rather than restart nscd #56
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
nscd::service_restart: /usr/sbin/service nscd reload | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
nscd::user: root | ||
nscd::service_restart: /bin/systemctl reload nscd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
nscd::user: nscd | ||
nscd::logfile: /var/log/nscd.log | ||
nscd::service_restart: /usr/bin/systemctl reload nscd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
nscd::service_restart: /usr/sbin/service nscd reload | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this valid? I never saw a 16.04 without systemd and in all other modules we assume 16.04 and newer ubuntus are running with systemd There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
class nscd::service ( | ||
$service_ensure = $nscd::service_ensure, | ||
$service_enable = $nscd::service_enable, | ||
$pkg_ensure = $nscd::pkg_ensure, | ||
$service_ensure = $nscd::service_ensure, | ||
$service_enable = $nscd::service_enable, | ||
$service_restart = $nscd::service_restart, | ||
$pkg_ensure = $nscd::pkg_ensure, | ||
) { | ||
if $pkg_ensure != 'absent' { | ||
service { 'nscd': | ||
ensure => $service_ensure, | ||
enable => $service_enable, | ||
ensure => $service_ensure, | ||
enable => $service_enable, | ||
restart => $service_restart, | ||
hasrestart => true, | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that Debian 8 could be used with systemd and sysv, but in all other modules we have we assume it's running systemd. (also I think we should not support debian 8 anymore because it has very limited support and debian 9/10 are available)