changeset 445:f23518f7c7dc

Enable syslog and newsyslog rotation.
author Aleksandr Rybalko <ray@ddteam.net>
date Thu, 20 Sep 2012 15:36:21 +0300
parents a0f75c3d2ca5
children 597e3d7bc38b
files profiles/SMALL_/files/etc/crontab profiles/SMALL_/files/etc/inetd.conf profiles/SMALL_/files/etc/newsyslog.conf profiles/SMALL_/profile.mk
diffstat 4 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/profiles/SMALL_/files/etc/crontab	Thu Sep 20 15:35:32 2012 +0300
+++ b/profiles/SMALL_/files/etc/crontab	Thu Sep 20 15:36:21 2012 +0300
@@ -2,7 +2,7 @@
 PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 */5	*	*	*	*	root	/usr/libexec/atrun
 */11	*	*	*	*	operator /usr/libexec/save-entropy
-0	*	*	*	*	root	newsyslog
+*/6	*	*	*	*	root	newsyslog
 1	3	*	*	*	root	periodic daily
 15	4	*	*	6	root	periodic weekly
 30	5	1	*	*	root	periodic monthly
--- a/profiles/SMALL_/files/etc/inetd.conf	Thu Sep 20 15:35:32 2012 +0300
+++ b/profiles/SMALL_/files/etc/inetd.conf	Thu Sep 20 15:36:21 2012 +0300
@@ -7,8 +7,8 @@
 # To enable a service, remove the '#' at the beginning of the line.
 #
 #ftp	stream	tcp	nowait	root	/mnt/usr/libexec/ftpd	ftpd -l -A
-ssh	stream	tcp	nowait	root	/usr/sbin/sshd		sshd -i -4
-telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
+#ssh	stream	tcp	nowait	root	/usr/sbin/sshd		sshd -i -4
+#telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
 #shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd
 #login	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind
 #finger	stream	tcp	nowait/3/10 nobody /usr/libexec/fingerd	fingerd -s
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/SMALL_/files/etc/newsyslog.conf	Thu Sep 20 15:36:21 2012 +0300
@@ -0,0 +1,3 @@
+# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
+/var/log/all.log			644  1	   50	*     GC
+
--- a/profiles/SMALL_/profile.mk	Thu Sep 20 15:35:32 2012 +0300
+++ b/profiles/SMALL_/profile.mk	Thu Sep 20 15:36:21 2012 +0300
@@ -169,13 +169,14 @@
 
 #ppp \
 WORLD_SUBDIRS_USR_SBIN+= \
-ngctl \
-nghook \
 chroot \
 cron \
-pwd_mkdb \
 inetd \
 gpioctl \
+newsyslog \
+ngctl \
+nghook \
+pwd_mkdb \
 syslogd
 
 .if defined(WITH_USB)