Commit 52ce456f authored by mh's avatar mh
Browse files

fix the init script so the pidfile is being used

parent 364c4e07
# basic configuration
class imapproxy::base { class imapproxy::base {
package { up-imapproxy: package {'up-imapproxy':
ensure => present, ensure => present,
} } -> exec{'fix_imapproxy_init_script':
command => ' sed -i \'s@killproc @killproc -p /var/run/imapproxy.pid @\' /etc/init.d/imapproxy',
file{'/etc/imapproxy.conf': onlyif => 'grep -q \'killproc /\' /etc/init.d/imapproxy',
} -> file{'/etc/imapproxy.conf':
source => [ "puppet:///modules/site_imapproxy/${::fqdn}/imapproxy.conf", source => [ "puppet:///modules/site_imapproxy/${::fqdn}/imapproxy.conf",
"puppet:///modules/site_imapproxy/imapproxy.conf", 'puppet:///modules/site_imapproxy/imapproxy.conf',
"puppet:///modules/imapproxy/imapproxy.conf" ], 'puppet:///modules/imapproxy/imapproxy.conf' ],
require => Package[up-imapproxy], owner => root,
notify => Service[imapproxy], group => 0,
owner => root, group => 0, mode => 0644; mode => '0644';
} } ~> service {'imapproxy':
ensure => running,
service {'imapproxy':
ensure => running,
enable => true, enable => true,
} }
} }
Markdown is supported
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