Puppet: Unable to start squid service

puppetsquid

In init.pp the squid service is defined like this:

service { 'squid':
ensure     => running,
enable     => true,
hasrestart => true,
hasstatus  => true,
subscribe  => File['/etc/squid/squid.conf'],
}

The result is this:

err: /Stage[main]/module_1::Squid/Service[squid]/ensure: change from stopped to running failed: Could not start Service[squid]: Execution of '/etc/init.d/squid start' returned 1:

If I run "etc/init.d/squid start" I get:

Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service squid start
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility,
e.g. start squid start: Job failed to start

I can start/stop squid on the machine with "service squid start/stop". It's Ubuntu 10.04 minimal.

Best Answer

Did you find any error while running squid -X

Related Topic