1:- use_module(library(http/http_log)). 2 3% Avoid that XPCE creates a thread because that stops us forking. 4:- set_prolog_flag(xpce_threaded, false). 5:- [load]. 6 7:- http_schedule_logrotate(monthly(1, 04:00), 8 [ keep_logs(6) 9 ]). 10% library(http/http_unix_daemon) is loaded when loading the library 11:- initialization(http_daemon, main).