summary refs log tree commit diff
path: root/src/svlogd.c
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2003-06-05 11:39:11 +0000
committerGerrit Pape <pape@smarden.org>2003-06-05 11:39:11 +0000
commitbca5d80102ca893c60a5c5d0906a4cd8816d6a13 (patch)
treebdf658b47b59240839e982e6458b1bbb9e8feb3c /src/svlogd.c
parent75bdbcb65eeece3d85161912c81614eeb7450d31 (diff)
downloadrunit-bca5d80102ca893c60a5c5d0906a4cd8816d6a13.tar.gz
runit-bca5d80102ca893c60a5c5d0906a4cd8816d6a13.tar.xz
runit-bca5d80102ca893c60a5c5d0906a4cd8816d6a13.zip
* svlogd.c: default log file size is 1M; print verbose message only if
    -v is set.
  * man/svlogd.8: document -v option; minor.
  * etc/freebsd/3, etc/openbsd/3: check if magic files in /etc/runit/ are
    executable, not readable.
  * etc/*/getty-tty*/run: remove utmpset from script.
  * etc/*/getty-tty*/finish: new: run utmpset.
  * doc/replaceinit.html: adapt.
  * setuidgid.c: new: daemontools' setuidgid drop in replacement (not
    installed by default).
  * Makefile: build setuidgid.
  * doc/index.html: update.
Diffstat (limited to 'src/svlogd.c')
-rw-r--r--src/svlogd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/svlogd.c b/src/svlogd.c
index 9ea61e8..37015ba 100644
--- a/src/svlogd.c
+++ b/src/svlogd.c
@@ -305,7 +305,7 @@ unsigned int logdir_open(struct logdir *ld, const char *fn) {
   coe(ld->fdlock);
 
   ld->size =0;
-  ld->sizemax =9000;
+  ld->sizemax =1000000;
   ld->nmax =10;
   ld->name =(char*)fn;
   ld->match =0;
@@ -486,7 +486,7 @@ int buffer_pread(int fd, char *s, unsigned int len) {
 }
 void sig_term_handler(void) {
   exitasap =1;
-  strerr_warn2(INFO, "sigterm received.", 0);
+  if (verbose) strerr_warn2(INFO, "sigterm received.", 0);
 }
 void sig_child_handler(void) {
   int pid, l;
@@ -498,7 +498,7 @@ void sig_child_handler(void) {
 	processorstop(&dir[l]);
 	break;
       }
-  strerr_warn2(INFO, "sigchild received.", 0);
+  if (verbose) strerr_warn2(INFO, "sigchild received.", 0);
 }
 void sig_alarm_handler(void) {
   int l;
@@ -507,11 +507,11 @@ void sig_alarm_handler(void) {
     if (dir[l].fddir != -1)
       if (dir[l].size > 0)
 	rotate(&dir[l]);
-  strerr_warn2(INFO, "sigalarm received.", 0);
+  if (verbose) strerr_warn2(INFO, "sigalarm received.", 0);
 }
 void sig_hangup_handler(void) {
   logdirs_reopen();
-  strerr_warn2(INFO, "sighangup received.", 0);
+  if (verbose) strerr_warn2(INFO, "sighangup received.", 0);
 }
 
 int main(int argc, const char **argv) {