FreeBSD Bugzilla – Attachment 225401 Details for
Bug 256286
net/endlessh: Add log rotation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git diff for net/endlessh
patch-net_endless-newsyslog[1] (text/plain), 2.22 KB, created by
Bernard Spil
on 2021-05-31 11:14:41 UTC
(
hide
)
Description:
git diff for net/endlessh
Filename:
MIME Type:
Creator:
Bernard Spil
Created:
2021-05-31 11:14:41 UTC
Size:
2.22 KB
patch
obsolete
>diff --git a/net/endlessh/Makefile b/net/endlessh/Makefile >index 8a0319f8f77c..4e0e7caa95a6 100644 >--- a/net/endlessh/Makefile >+++ b/net/endlessh/Makefile >@@ -15,7 +15,8 @@ GH_ACCOUNT= skeeto > > PLIST_FILES= bin/endlessh \ > man/man1/endlessh.1.gz \ >- "@sample ${PREFIX}/etc/endlessh.conf.sample" >+ "@sample ${PREFIX}/etc/endlessh.conf.sample" \ >+ ${PREFIX}/etc/endlessh.newsyslog.conf > > post-patch: > ${REINPLACE_CMD} 's|share/man|man|;s|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile >@@ -23,6 +24,8 @@ post-patch: > ${WRKSRC}/endlessh.c ${WRKSRC}/endlessh.1 > > post-install: >- ${INSTALL_DATA} ${FILESDIR}/endlessh.conf.sample ${STAGEDIR}${PREFIX}/etc/ >+ ${INSTALL_DATA} ${FILESDIR}/endlessh.newsyslog.conf \ >+ ${FILESDIR}/endlessh.conf.sample ${STAGEDIR}${PREFIX}/etc/ >+ ${STRIP} ${STAGEDIR}${PREFIX}/bin/endlessh > > .include <bsd.port.mk> >diff --git a/net/endlessh/files/endlessh.in b/net/endlessh/files/endlessh.in >index f54ab6b46f4e..abc5ec9d59cf 100644 >--- a/net/endlessh/files/endlessh.in >+++ b/net/endlessh/files/endlessh.in >@@ -26,8 +26,9 @@ load_rc_config $name > : ${endlessh_logfile:=/var/log/endlessh.log} > > pidfile=/var/run/endlessh.pid >+daemonpidfile=/var/run/daemon_endlessh.pid > procname="%%PREFIX%%/bin/endlessh" > command=/usr/sbin/daemon >-command_args='-p ${pidfile} -u ${endlessh_daemonuser} -o ${endlessh_logfile} ${procname} -f ${endlessh_config} ${endlessh_args}' >+command_args='-p ${pidfile} -P ${daemonpidfile} -u ${endlessh_daemonuser} -Ho ${endlessh_logfile} ${procname} -f ${endlessh_config} ${endlessh_args}' > > run_rc_command $1 >diff --git a/net/endlessh/files/endlessh.newsyslog.conf b/net/endlessh/files/endlessh.newsyslog.conf >new file mode 100644 >index 000000000000..e50538e4dcf4 >--- /dev/null >+++ b/net/endlessh/files/endlessh.newsyslog.conf >@@ -0,0 +1,11 @@ >+# newsyslog configuration file for endlessh(1) >+# >+# Link (or copy) endlessh.newsyslog.conf to /usr/local/etc/newsyslog.conf.d/ >+# to take care of log rotation. >+# >+# ln -s /usr/local/etc/endlessh.newsyslog.conf /usr/local/etc/newsyslog.conf.d >+# >+# See newsyslog.conf(5) for details. >+# >+# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] >+/var/log/endlessh.log root:wheel 600 7 * @T00 G /var/run/daemon_endlessh.pid SIGHUP
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256286
: 225401