docs(freebsd): capture stdout to /var/log/fingerd.log via daemon -o
Without -o the daemon(8) wrapper redirects stdout to /dev/null, so the printf-based logging is invisible on BSD.
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ Create `/usr/local/etc/rc.d/fingerd`:
|
||||
name="fingerd"
|
||||
rcvar="fingerd_enable"
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-f -p /var/run/fingerd.pid /usr/local/bin/finger"
|
||||
command_args="-f -p /var/run/fingerd.pid -o /var/log/fingerd.log /usr/local/bin/finger"
|
||||
pidfile="/var/run/fingerd.pid"
|
||||
# procname must be the full path so rc.subr can match it against ps output
|
||||
procname="/usr/local/bin/finger"
|
||||
|
||||
Reference in New Issue
Block a user