summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* * doc/index.html: some reordering.Gerrit Pape2006-11-212-113/+113
| | | | | | * runit.c: fix arguments to wait_pid() after fork for reboot_system() (thx Jan Kampe). * man/runsv.8: suggest printf t instead of echo -n t.
* * chpst.c, uidgid.c, uidgid.h: support numerical uid gid throughGerrit Pape2006-11-024-17/+71
| | | | | | | | chpst -[u|U] :uid:gid... * man/chpst.8: adapt; clarify that users and groups are looked up in /etc/passwd and /etc/group only. * sv.c: properly wait for a service to be restarted on 'restart'; support checks through -v for pause, cont, kill.
* * runit.c: don't make console the controlling terminal for process 1,Gerrit Pape2006-10-071-3/+13
| | | | | but for stage 1 only; fork before initiating system halt or reboot, the linux kernel calls do_exit(0) in kernel/sys.c (thx Jan Kampe).
* * svlogd.c, fmt_ptime.*, man/svlogd.8: new option -ttt: prefix logGerrit Pape2006-07-244-14/+29
| | | | | | | 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).
* * uidgid.c: properly fixup user/group argument on getpwnam() error.Gerrit Pape2006-06-201-1/+1
|
* * 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.
* * runsv.c: delay restart of log service at least 1 sec, just as the mainGerrit Pape2006-05-102-3/+3
| | | | | service. * runsvdir.c: don't double-copy filedescriptor.
* * man/runsvdir.8: document that the services directory is re-scanned ifGerrit Pape2006-04-102-18/+32
| | | | | | | | | | | 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.
* * doc/faq.html: typos; add usercontrol, userservices; minor.Gerrit Pape2006-03-201-2/+4
| | | | | | * src/uidgid.h: use uid_t, git_t (fix setting of multiple groups with dietlibc, thx Tino Keitel) 1.4.1.
* dist.Gerrit Pape2006-03-042-4/+4
|
* * chpst: new option -d, limit data segment per process; don't use nestedGerrit Pape2006-03-041-58/+62
| | | | functions.
* * doc/faq.html: new.Gerrit Pape2006-03-042-4/+3
| | | | | | | | | | | | | | | | | | | * doc/benefits.html: use sv program instead of runsvstat, runsvctrl; minor. * doc/replaceinit.html, doc/runlevels.html: put getty service directory into /etc/sv/. * doc/runscripts.html: use sv program instead of svwaitup. * etc/*/3, etc/macosx/StartupItems/runit: use sv program instead of svwaitdown. * man/runsv.8: use sv program instead of runsvctrl. * man/sv.8: minor. * Makefile, package/commands: no longer build/install runsvctrl, runsvstat, svwaitdown, svwaitup. * man/runsvctrl.8, man/runsvstat.8, man/svwaitdown.8, man/svwaitup.8: remove; obsolete. * doc/index.html: add faq; remove runsvctrl, runsvstat, svwaitdown, svwaitup. * sv.c: fix usage output.
* * chpst.c: adjust nice value and set limits before dropping permissions.Gerrit Pape2006-01-022-8/+10
| | | | | | | * sv.c: new additional command 'check'; with -v check for CONT through ./check if service is up. * man/sv.8: adapt. 1.3.3.
* * svlogd.c: don't print extra newlines to the log if additionally writingGerrit Pape2005-12-182-2/+2
| | | | | | | | | | | | | | | | | 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.
* sv.c: print warning to stderr; use very first command to check against.Gerrit Pape2005-08-241-14/+15
|
* * doc/runscripts.html: typo; openssh needs absolute path (thx Kevin Berry);Gerrit Pape2005-08-235-25/+77
| | | | | | | | | exec into dhcpcd. * uidgid.c, uidgid.h, chpst.c: support colon-separated list of groups. * sv.c: utilize optional ./check script in service directory to check for availablity of service. * runsv.c: wait_pid() might be interupted. * man/chpst.8, man/sv.8: adapt.
* have control() support multiple characters.Gerrit Pape2005-07-241-29/+32
|
* minor.Gerrit Pape2005-07-241-9/+9
|
* more cleanup; support D, X, force-shutdown, force-down.Gerrit Pape2005-07-241-45/+49
|
* support SVDIR environment variable.Gerrit Pape2005-07-231-7/+5
|
* re-add -ko.Gerrit Pape2005-07-231-0/+12
|
* grmpf. To be re-added -ko.Gerrit Pape2005-07-231-12/+0
|
* minor.Gerrit Pape2005-07-233-1/+7
|
* cleanup.Gerrit Pape2005-07-231-59/+67
|
* minimal sv.check.Gerrit Pape2005-07-234-1/+35
|
* * chpst.c: fix pointer types.Gerrit Pape2005-07-231-12/+16
|
* runsv.check: adapt.Gerrit Pape2005-07-231-0/+3
|
* * sv.c: new sv program to control services, optionally can be linked toGerrit Pape2005-07-233-0/+326
| | | | | /etc/init.d/ as lsb "init script" command line interface. * Makefile, TARGETS: adapt.
* * runsv.c: optimize output buffer handling; porperly run custom t, d, x,Gerrit Pape2005-07-231-13/+25
| | | | k, when stopping service; no longer support e control character.
* * svlogd.c: write to log dir after possibly writing through udp (fixesGerrit Pape2005-07-111-4/+4
| | | | line break issue).
* * man/runsv.8: typo; no longer document the e control character; clarifyGerrit Pape2005-07-113-6/+8
| | | | | | custom control on d and x. * runsvchdir.c, runsvstat.c: optimize output buffer handling. * runsvctrl.c: write x control character to runsv on e.
* * svlogd.c: properly prefix log messages written to standard error withGerrit Pape2005-04-034-4/+5
| | | | | | | optional timestamp. * runsvctrl.c, svwaitdown.c, svwaitup.c: supervise not running -> runsv not running. * package/README: 2005.
* * runsv.c: typos; bugfix: run optional control/x when receiving SIGTERMGerrit Pape2005-01-141-8/+11
| | | | | (thx Vladimir Smelhaus); minor. 1.2.1.
* dist.Gerrit Pape2005-01-122-4/+4
|
* * chpst.c: typo.Gerrit Pape2005-01-103-24/+39
| | | | | | | | | * svwaitdown.c: minimum timeout is 1 second; service directories no longer must start with /. * svwaitup.c: minimum uptime of services is 1 second; service directories no longer must start with /; print number of seconds a service is up if verbose. * man/svwaitdown.8, man/svwaitup.8: adapt.
* don't update timestamp in status when running ./finish; only sleep for a secondGerrit Pape2004-12-131-11/+13
| | | | | if ./run has been restarted within a second, and after updating status to down, normally up, want up.
* * runsv.check, runsv.dist: check custom control commands.Gerrit Pape2004-12-123-24/+43
| | | | minor.
* * doc/upgrade.html: typo.Gerrit Pape2004-12-121-16/+51
| | | | | | * runsv.c: support custom control commands through control/ directory, optionally switch off sending signal. * man/runsv.8: document custom control commands.
* .dist.Gerrit Pape2004-11-062-4/+5
|
* * svlogd.c: new config option t timeout; config options e and E select andGerrit Pape2004-11-064-244/+350
| | | | | | | | | | | 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.
* dist output.Gerrit Pape2004-09-211-1/+1
|
* * runsvdir.c: new option -P, run each runsv process in a new session andGerrit Pape2004-09-211-1/+10
| | | | | process group (thx Charlie Brady). * man/runsvdir.8: adapt; typo.
* * 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.
* * runsvdir.c:Gerrit Pape2004-08-021-15/+17
| | | | | | | sleep one second before scanning if services dir mtime is now; loop while chdir to starting dir fails; rename log, loglen to rplog, rploglen. * etc/macosx/StartupItems/runit: use -x option to svwaitdown; timeout 14.
* * runsvdir.c: check services dir again after one second until it'sGerrit Pape2004-08-011-10/+14
| | | | unchanged (thx Eric Lammerts); loop while chdir to starting dir fails.
* * runit.c, man/runit.8: if stage 1 crashes or exits 100, stage 2 will beGerrit Pape2004-06-261-14/+15
| | | | | skipped; if stage 2 crashes or exits 111, it will be restarted. * doc/runscripts.html: add, adapt various run scripts (thx).
* chdir before chroot.Gerrit Pape2004-04-301-1/+4
|
* dist.Gerrit Pape2004-04-271-2/+2
|
* chpst: support -/ chroot.Gerrit Pape2004-04-271-2/+6
|
* * man/svlogd.8: timestamps are not considered when matching patterns (thxGerrit Pape2004-03-284-5/+9
| | | | | | | | | 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.