From bc5f141e8e4e4df3813dd123cf5a76355e65be17 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Mar 2016 22:42:12 +0000 Subject: daemon: document optional Net::Server dependency Non-socket activation users will want to install Net::Server for daemonization, pid file writing, and user/group switching. --- t/httpd-unix.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/httpd-unix.t b/t/httpd-unix.t index 580d14d2..b3368491 100644 --- a/t/httpd-unix.t +++ b/t/httpd-unix.t @@ -81,7 +81,11 @@ check_sock($unix); is($?, 0, 'existing httpd exited successfully'); ok(-S $unix, 'unix socket still exists'); } -{ + +SKIP: { + eval 'require Net::Server::Daemonize'; + skip('Net::Server missing for pid-file/daemonization test', 10) if $@; + # wait for daemonization $spawn_httpd->("-l$unix", '-D', '-P', "$tmpdir/pid"); my $kpid = $pid; -- cgit v1.2.3-24-ge0c7