summary refs log tree commit diff
path: root/src/svlogd.c
Commit message (Collapse)AuthorAgeFilesLines
* svlogd.c: Initialize all fields of sockaddr_in.Érico Rolim2024-09-251-0/+1
| | | | http://skarnet.org/cgi-bin/archive.cgi?2:mss:1163:201602:gpiglpbjdemlioaeabbn
* fix compilation warning(s): -Wincompatible-pointer-types-discards-qualifiersZ. Liu2024-09-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | found by using clang 18 with CFLAGS: -Wall since gcc 14, certain warnings (including this one, gcc report as -Wincompatible-pointer-types) are now errors, see https://gcc.gnu.org/gcc-14/porting_to.html link of debian's patches is: https://salsa.debian.org/debian/runit/-/tree/master/debian/patches 0014-fix-implicit-declarations-incompatible-types-argv-ty.patch pathexec_run.c: warning: passing 'const char *const *' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 19 | execve(file,argv,envp); | ^~~~ ^~~~ 36 | execve(tmp.s,argv,envp); | ^~~~ ^~~~ pathexec_env.c:67:21: warning: passing 'const char *const *' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 67 | pathexec_run(file,argv,e); | ^~~~ pathexec_env.c:67:26: warning: passing 'const char **' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 67 | pathexec_run(file,argv,e); | ^ runsvdir.c:74:25: warning: passing 'const char *[3]' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 74 | pathexec_run(*prog, prog, (const char* const*)environ); | ^~~~ runsvdir.c:74:31: warning: passing 'const char *const *' to parameter of type 'char *const *' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 74 | pathexec_run(*prog, prog, (const char* const*)environ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
* svlogd.c: don't statically bind local udp socketGerrit Pape2007-04-171-9/+8
| | | | ..., but request new source port for each log message sent through udp.
* * svlogd.c, fmt_ptime.*, man/svlogd.8: new option -ttt: prefix logGerrit Pape2006-07-241-9/+5
| | | | | | | messages with sortable UTC timestamp YYYY-MM-DDTHH:MM:SS.xxxxx. * runsv.c, runsv.8: give to arguments to ./finish: exit code and exit status of ./run (mostly copied from pipe-tools' npt-supervise, thx Laurent Bercot).
* * src/svlogd.c: cleanup *.t files possibly leftover by processor whenGerrit Pape2006-06-191-22/+38
| | | | | | | | interrupted by signal, also on startup (thx Andras Korn); 1st rename .t to .s, then remove .u. * man/svlogd.8: adapt. * svlogd.c: prepend optional timestamp to log messages sent through UDP, as done for messages written to dir and to stderr.
* * man/runsvdir.8: document that the services directory is re-scanned ifGerrit Pape2006-04-101-17/+28
| | | | | | | | | | | the time of last modification, the inode, or the device has changed. * sv.c: don't report success on 'sv start' if the service is in state finish (thx Matthew R. Dempsky). * svlogd.c: new config line p: optionally prefix each line written to logs, stderr, or through udp; no longer skip empty lines (just containing '\n'), old behavior can be restored with '-' in config. * man/svlogd.8: document new p config line; adapt. 1.5.0.
* * svlogd.c: don't print extra newlines to the log if additionally writingGerrit Pape2005-12-181-1/+1
| | | | | | | | | | | | | | | | | to the network through udp (thx Andras Korn, http://bugs.debian.org/339030). * runsvdir.c: also process svdir changes if mtime of svdir has changed into the past (thx Martin Dickopp). * doc/index.html: update description; Please contact this list and not me privately. * doc/replaceinit.html, doc/runscripts.html: minor. * man/chpst.8: -U doesn't support a list of groups. * man/svlogd.8: update PATTERN MATCHING section, add example (based on sugesstions from Joshua N Pritikin). * man/*8: update SEE ALSO sections: runsvctrl, runsvstat, svwaitdown, svwaitup will become obsolete; remove references to man pages for programs from the daemontools package. 1.3.2.
* * svlogd.c: write to log dir after possibly writing through udp (fixesGerrit Pape2005-07-111-4/+4
| | | | line break issue).
* * svlogd.c: properly prefix log messages written to standard error withGerrit Pape2005-04-031-0/+1
| | | | | | | optional timestamp. * runsvctrl.c, svwaitdown.c, svwaitup.c: supervise not running -> runsv not running. * package/README: 2005.
* * svlogd.c: new config option t timeout; config options e and E select andGerrit Pape2004-11-061-178/+260
| | | | | | | | | | | deselect lines for stderr respectively; new config option N. * man/svlogd.8: adapt. * runsv.c: on commands down and exit send CONT after TERM. * man/runsv.8: adapt. * etc/2: use -P option to runsvdir. * src/svlogd.check: end check for t config option. * chpst.c: new option -n: adjust nice level. * man/chpst.8: adapt.
* * svlogd.c: fix line buffer handling for pattern matching (thx EnricoGerrit Pape2004-09-201-190/+182
| | | | | | | | | | Scholz); minor bug fixes. * doc/index.html: wording; add link to useinit.html; remove link to runit on LinuxFromScratch. * doc/runscripts.html: add hint, some getties need to be run in a new session/process group (thx Dan Melomedman). * man/svlogd.8: minor fixes. * man/svwaitdown.8: remove hint about -x option.
* * man/svlogd.8: timestamps are not considered when matching patterns (thxGerrit Pape2004-03-281-1/+1
| | | | | | | | | Andras KORN). * runsv.c: on exit run the finish scripts when taking the service down (thx X.). * runsv.c, runsvctrl.c: handle sig_quit (thx Wayne Marshall). * svlogd.c: don't crash on zero byte long config file (thx Alex Efros). * man/*: minor cleanup.
* * svlogd.c: bugfix: properly print new-line character to the log on endGerrit Pape2004-01-191-3/+10
| | | | | | | of line (thx Pawel Chmielowski). * trysocketlib.c: new; check for libraries needed for socket() on some systems (fixes link failure on solaris, thx Uffe Jakobsen). * Makefile: adapt.
* * svlogd.c: support sending log entries to remote host through udp,Gerrit Pape2004-01-121-18/+92
| | | | | configurable through u and U lines in log dir config file; minor. * man/svlogd.8: adapt.
* * svlogd.c: barf if all log directories given at the command line fail.Gerrit Pape2003-09-011-1/+4
| | | | | * man/svlogd.8: adapt. 0.11.1.
* * doc/index.html, doc/install.html, doc/replaceinit.html, doc/useinit.html:Gerrit Pape2003-06-221-19/+19
| | | | | | | | how to install and configure runit on MacOSX. * svlogd.c: fix incorrect handling of processor's state file; minor code cleanup. * runit-init.c: exit 0 on wrong usage. 0.10.0
* * runit.c: user select() on systems that don't provide poll() (buildsGerrit Pape2003-06-171-0/+1
| | | | | | | | | on Mac OSX). * svlogd.c: reset match flag in lineflush() in all cases. * Makefile: build setuidgid in default target. * doc/useinit.html: add instruction to create /etc/runit/2 first. * doc/install.html: minor. 0.9.5.
* * svlogd.c: default log file size is 1M; print verbose message only ifGerrit Pape2003-06-051-5/+5
| | | | | | | | | | | | | | -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.
* * doc/dependencies.html, doc/useinit.html: new.Gerrit Pape2003-05-031-1/+5
| | | | | | | | | | * doc/index.html: adapt; reorder programs; runsvstat, runsvctrl installed by default. * doc/install.html: remove dependency on daemontools; create /package. * doc/replaceinit.html, man/runsv.8: typo. * man/svwaitdown.8, man/svwaitup.8: refer to runit and supervise. * svlogd.c: fix counter var namespace. * package/commands: add runsvctrl, runsvstat.
* * svlogd.c: reset match flag on deselection, fixes pattern matching.Gerrit Pape2003-04-301-0/+1
|
* * runsvdir.c: don't propagate sig_term to runsv processes when receivingGerrit Pape2003-04-241-30/+37
| | | | | | | | | | | sig_term; send sig_term to all runsv processes and exit 111 when receiving sig_hangup. * svlogd.c: code cleanup. * svwaitdown.c: send command "d" (and "x" if -x is set) to a service if it's not in state 'want down'. * svwaitup.c: minor code cleanup. * man/runsvdir.8, man/svwaitdown.8: adapt. 0.9.0.
* minor bugfix.Gerrit Pape2003-04-201-1/+1
|
* * svlogd.c: new; runit's service logging daemon.Gerrit Pape2003-04-201-0/+654
* fmt_ptime.h, fmt_ptime.c, pmatch.h, pmatch.c: new. * man/svlogd.8, doc/svlogd.8.html: new. * man/runsv.8, man/runsvstat.8, man/utmpset.8: minor cleanup.