FreeBSD Bugzilla – Attachment 224451 Details for
Bug 255427
net-mgmt/librenms: Install a newsyslog config file to rotate Librenms logs.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add a newsyslog config
librenms.patch (text/plain), 1.20 KB, created by
James French
on 2021-04-26 16:37:16 UTC
(
hide
)
Description:
Add a newsyslog config
Filename:
MIME Type:
Creator:
James French
Created:
2021-04-26 16:37:16 UTC
Size:
1.20 KB
patch
obsolete
>diff --git a/net-mgmt/librenms/Makefile b/net-mgmt/librenms/Makefile >index f4dc25413e2b..7f3b69ef111c 100644 >--- a/net-mgmt/librenms/Makefile >+++ b/net-mgmt/librenms/Makefile >@@ -194,4 +194,9 @@ post-install: > @${ECHO_CMD} "@dir(root,www,0775) ${WWWDIR}/${f}" >> ${TMPPLIST} > .endfor > >+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d >+ ${INSTALL_DATA} ${FILESDIR}/newsyslog.conf ${STAGEDIR}/${WWWDIR}/contrib/newsyslog.conf >+ @${ECHO_CMD} "@dir etc/newsyslog.conf.d" >> ${TMPPLIST} >+ @${ECHO_CMD} "@sample ${WWWDIR}/contrib/newsyslog.conf etc/newsyslog.conf.d/librenms.conf" >> ${TMPPLIST} >+ > .include <bsd.port.mk> >diff --git a/net-mgmt/librenms/files/newsyslog.conf b/net-mgmt/librenms/files/newsyslog.conf >new file mode 100644 >index 000000000000..cb319031a011 >--- /dev/null >+++ b/net-mgmt/librenms/files/newsyslog.conf >@@ -0,0 +1,7 @@ >+# configuration file for newsyslog for librenms >+# >+# see newsyslog.conf(5) for details >+# >+# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] >+/var/log/librenms/librenms.log www:www 644 7 100 * J /var/run/librenms/librenms.pid >+/var/log/librenms/librenms-service.log www:www 644 7 100 * J /var/run/librenms/librenms.pid
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 255427
:
224451
|
224452
|
224460