24 Commits

Author SHA1 Message Date
4a74b5bcfc Nitori Engineering 2025-04-17 20:33:16 -03:00
Mike Belopuhov
614260fef6 Fixup debug printf 2017-08-30 02:12:02 +02:00
Mike Belopuhov
094a76c402 Another lurking setusercontext 2017-08-24 23:46:25 +02:00
Tim Kuijsten
411aa630ac pledge icbd and it's logger process 2016-09-21 21:37:26 +02:00
Mike Belopuhov
d27dc1edd6 fixup signal and MAXPATHLEN include fallout 2015-01-18 22:59:35 +01:00
Mike Belopuhov
0519a8785b param.h and MAXHOSTNAMELEN cleanup 2015-01-18 21:46:13 +01:00
Florian Obser
cdd2ff5fd2 Opportunisticly chdir to "core" (should be writeable by _icbd) after
chroot to get working core dumps.
2014-03-14 22:37:05 +01:00
Mike Belopuhov
28c4fd37b1 Florian has pointed out that logger code suffers from the same problem
as the main code.  So first of all don't forget to subtract the amount
of what's already read from the total length; secondly correct the
condition to check partial read.
2014-03-14 21:40:28 +01:00
Mike Belopuhov
fe81e9ad68 Sprinkle some __func__ into the syslog messages 2014-03-10 13:15:14 +01:00
Mike Belopuhov
d06af04d84 Don't log default group ("1") messages 2014-03-07 17:08:56 +01:00
Mike Belopuhov
a2fadb4bf6 Get rid of ICB_MSGSIZE+1, fix various off-by-ones and do some truncation
where necessary.
2014-03-07 16:21:30 +01:00
Mike Belopuhov
058b664099 Make sure the we don't overflow the logfiles table 2014-03-07 15:17:03 +01:00
Mike Belopuhov
be3ad87cfc Rewrite logger_dispatch to use bufferevents to simplify error processing
This also ensures that we're dealing with partial messages correctly and
don't get out of sync with the main process.
2014-03-07 15:14:54 +01:00
Florian Obser
3fdebb84a9 log "Today is...", input mikeb 2014-03-06 14:56:10 +01:00
Mike Belopuhov
9a2a7036c7 Stuff logger_setts into the logger_tick directly 2014-03-06 00:36:39 +01:00
Florian Obser
c1888a5fa8 rotate logs 2014-03-06 00:04:58 +01:00
Florian Obser
23ca6f1881 log group status messages 2014-03-05 23:19:53 +01:00
Stuart Henderson
e54f151f05 chdir(/) immediately after chroot 2014-03-05 21:48:17 +00:00
Mike Belopuhov
3dba97de1d Add a logging switch toggle and a prefix for a nicer chroot 2014-03-05 22:41:56 +01:00
Mike Belopuhov
1dd35547d8 Chroot the logger process into the icbd user home directory 2014-03-05 18:39:17 +01:00
Mike Belopuhov
4e66b3ae9b Working logging 2014-03-05 18:28:43 +01:00
Florian Obser
a5893e9ac7 time accounting for log lines 2014-03-05 17:56:11 +01:00
Mike Belopuhov
45bd56ab0c logger will do its own time accounting; from the discussion with florian 2014-03-05 17:02:49 +01:00
Mike Belopuhov
55923b7428 Add some basic logger framework 2014-03-05 16:37:31 +01:00