Permalink
Browse files

Fix reload command to be systemd-compatible

  • Loading branch information...
1 parent bf3a195 commit b163fbda271c1c94bd171c0cfa88dca7b7d5d2cf @domcleal domcleal committed Jan 7, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 manifests/service.pp
@@ -14,7 +14,8 @@
}
exec { 'reload-apache':
- command => "/etc/init.d/${http_service} reload",
+ command => "service ${http_service} reload",
+ path => ["/sbin", "/usr/sbin"],
onlyif => $::operatingsystem ? {
/(Debian|Ubuntu)/ => '/usr/sbin/apache2ctl -t',
default => '/usr/sbin/apachectl -t',

0 comments on commit b163fbd

Please sign in to comment.