Faidon Liambotis has submitted this change and it was merged.
Change subject: sysctl: make service call init system-agnostic
......................................................................
sysctl: make service call init system-agnostic
Remove an onlyif that checked for an upstart unit, that was a remnant
from a workaround for Ubuntu hardy boxes. Switch "start" to a "service"
call so that it works equally under all init systems.
Change-Id: I0952cb041036ff2bce4e3007c272e009e7780c74
---
M modules/sysctl/manifests/init.pp
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Faidon Liambotis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/sysctl/manifests/init.pp b/modules/sysctl/manifests/init.pp
index d65072a..9cd1146 100644
--- a/modules/sysctl/manifests/init.pp
+++ b/modules/sysctl/manifests/init.pp
@@ -17,8 +17,7 @@
}
exec { 'update_sysctl':
- command => '/sbin/start procps',
- onlyif => '/usr/bin/test -r /etc/init/procps.conf',
+ command => 'service procps start',
refreshonly => true,
}
}
--
To view, visit https://gerrit.wikimedia.org/r/187429
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0952cb041036ff2bce4e3007c272e009e7780c74
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits