postinst contains, meaning the current status should be well handled.
if status squid | grep "start/running" > /dev/null; then
restart squid
fi
Oddly, on a lucid server with the recent update, I just tried manually
restarting squid with hammering upstart commands and got unexpected resolve. :/
dave@vector:~$ sudo restart squid
restart: Job failed to restart
dave@vector:~$ sudo start squid
squid start/running, process 26242
dave@vector:~$ sudo restart squid
restart: Job failed to restart
dave@vector:~$ sudo start squid
squid start/running, process 26576
dave@vector:~$ sudo restart squid
squid start/running, process 26665
dave@vector:~$ sudo stop squid
squid stop/waiting
dave@vector:~$ sudo restart squid
restart: Unknown instance:
dave@vector:~$ sudo start squid
squid start/running, process 27039
dave@vector:~$ sudo restart squid
squid start/running, process 27085
dave@vector:~$ sudo restart squid
squid start/running, process 27131
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725635
Title:
package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: el
subproceso instalado el script post-installation devolvió el código de
salida de error 1
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs