Next: , Previous: , Up: Running   [Contents][Index]


2.3 Stopping Polipo and getting it to reload

Polipo will shut down cleanly if it receives SIGHUP, SIGTERM or SIGINT signals; this will normally happen when a Polipo in the foreground receives a ^C key press, when your system shuts down, or when you use the kill command with no flags. Polipo will then write-out all its in-memory data to disk and quit.

If Polipo receives the SIGUSR1 signal, it will write out all the in-memory data to disk (but won’t discard them), reopen the log file, and then reload the forbidden URLs file (see Forbidden).

Finally, if Polipo receives the SIGUSR2 signal, it will write out all the in-memory data to disk and discard as much of the memory cache as possible. It will then reopen the log file and reload the forbidden URLs file.