Next: , Previous: , Up: Polipo Invocation   [Contents][Index]

2.1.2 Running as a daemon

If the configuration variable daemonise is set to true, Polipo will run as a daemon: it will fork and detach from its controlling terminal (if any). The variable daemonise defaults to false.

When Polipo is run as a daemon, it can be useful to get it to atomically write its pid to a file. If the variable pidFile is defined, it should be the name of a file where Polipo will write its pid. If the file already exists when it is started, Polipo will refuse to run.