Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Did you find any error while running squid -X

share|improve this answer
1  
Yes! There is a url_rewrite line that was supposed to be deleted... Thanks! –  chris Dec 10 '11 at 0:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.