aboutsummaryrefslogtreecommitdiffstats
path: root/src/supervision/s6-supervise.c
Commit message (Collapse)AuthorAgeFilesLines
* Defork s6-supervise (!)Laurent Bercot2023-09-111-127/+79
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add s6-svc -QLaurent Bercot2023-02-061-23/+23
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* More bugfixesLaurent Bercot2023-01-111-35/+54
| | | | | | And doc fixes Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Adapt to skalibs-2.13.0.0Laurent Bercot2022-11-291-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-supervise QoL: only skip 1-second restart delay when service was readyLaurent Bercot2022-10-041-13/+23
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add upper limit to -c in s6-svscanLaurent Bercot2022-08-211-1/+1
| | | | | | Also document it, and document changes to s6-supervise Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Pass service name as an argument to the service scriptLaurent Bercot2022-08-201-2/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-supervise: also closethem() on -x in LASTFINISH for consistencyLaurent Bercot2022-06-281-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: s6-supervise: -x should closethem() even in LASTUP stateLaurent Bercot2022-06-281-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0Laurent Bercot2022-06-081-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-svlink, s6-svunlink, .h changesLaurent Bercot2021-08-301-2/+1
| | | | | | | | | Renamed from s6-svdir-(un)link. Doc added. Full functionality added. Still need to be tested. Unrelated: .h names simplified. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* skalibs-2.11.0.0 API changeLaurent Bercot2021-08-091-8/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add lock-fd feature to s6-superviseLaurent Bercot2021-06-181-25/+93
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: unignore SIGPIPE before execing a user-controlled processLaurent Bercot2021-02-111-0/+2
|
* Big signal/command semantics change to svscan/supervise; add s6-svperms.Laurent Bercot2020-12-041-63/+43
|
* Fix lock permissionsLaurent Bercot2020-12-021-5/+5
|
* Fix build against skalibs-2.10.0.0Laurent Bercot2020-12-021-4/+91
|
* Use execv() where applicableLaurent Bercot2020-01-161-3/+2
|
* Adapt to new stopwatch APILaurent Bercot2019-09-061-2/+1
|
* Separate wall clocks from stopwatchesLaurent Bercot2019-09-041-5/+6
|
* bugfix: correctly handle s6-svc -XLaurent Bercot2019-01-231-2/+2
|
* Down signal customization: add ./down-signal file and s6-svc -rLaurent Bercot2018-06-151-12/+32
|
* Bugfix: inverted warning condition on s6_dtally_write (non-critical)Laurent Bercot2018-03-261-1/+1
|
* Add s6-svdt, change default max tally to 100, add doc, prepare for 2.7.1.0Laurent Bercot2018-03-201-1/+1
|
* Add death tally support to s6-supervise, throttling support to s6_svstatus_tLaurent Bercot2018-03-201-0/+27
|
* Add s6_svc_lock_take() and s6_svc_lock_release()Laurent Bercot2017-07-121-1/+1
| | | | | | Allows fixing a race condition in s6-rc-init. s6-supervise also creates event/ before supervise/ so that locking the servicedir ensures event/ can be used.
* Add the timeout-kill feature to s6-supervise. Prepare for version 2.5.1.0.Laurent Bercot2017-05-191-2/+21
|
* Stop using flagwant; new s6-svstat API; s6-svwait's timeout exitcode is now 99Laurent Bercot2017-03-251-9/+4
|
* Implement permanent failure for services via ./finish exiting 125Laurent Bercot2017-03-201-1/+7
|
* Change setpgrp() to setpgid(0, 0) because lolBSD don't have a standard ↵Laurent Bercot2017-03-141-1/+1
| | | | | | setpgrp(). How the fuck are the BSDs even still alive?
* Fix argument order in memchr() !Laurent Bercot2017-03-121-1/+1
|
* Adapt to skalibs-2.5.0.0Laurent Bercot2017-03-121-12/+12
|
* setpgrp() when nosetsid contains "setpgrp" (asked by Buck Evans)Laurent Bercot2017-02-191-2/+11
|
* Two-space indentation please :PLaurent Bercot2017-01-281-2/+2
|
* code style fix, types change in docLaurent Bercot2017-01-281-1/+1
|
* supervise: set down&ready (D) even on LASTFINISHOlivier Brunel2017-01-281-1/+7
| | | | Signed-off-by: Olivier Brunel <jjk@jjacky.com>
* Types fix, first passLaurent Bercot2017-01-121-6/+6
|
* - Fix selfpipe_read() invocation: the return is int, not charLaurent Bercot2015-11-301-2/+1
| | | | - Easier CROSS_COMPILE support in configure
* Agh! SIGWINCH isn't POSIX!Laurent Bercot2015-10-121-0/+3
|
* Add SIGWINCH support to s6-supervise and s6-svc (-y)Laurent Bercot2015-10-121-9/+14
|
* Fix display of readiness at service startupLaurent Bercot2015-09-171-0/+1
|
* - Add timeout-finish support and "down-readiness"Laurent Bercot2015-07-201-76/+79
| | | | | | | - LOTS of refactoring to make this work - Remove s6-notifywhenup - s6-supervise now rocks the casbah - rc for 2.2.0.0
* - doc fixes (changed mentions of s6-notifywhenup)Laurent Bercot2015-06-251-13/+35
| | | | | - s6-svc -X - rc for 2.1.6.0
* - Add support for SIGUSR1 for poweroff in s6-svscanLaurent Bercot2015-06-171-4/+11
| | | | - Optimize respawn delay in s6-supervise
* - Readiness notification support in s6-superviseLaurent Bercot2015-06-151-26/+101
| | | | | | - s6-notifywhenup deprecated - Change abundantly documented - rc for 2.1.4.0
* - Revert LASTFINISH special case (closing stdin/out) in s6-supervise.Laurent Bercot2015-03-011-10/+0
| | | | | (To be watched, but loggers should exit once s6-supervise exits.) - Change Colin's email address
* - added the s6_fdholder library to libs6. (Nothing useful yet.)Laurent Bercot2015-01-191-15/+15
| | | | | | | | | | - fixed execline invocation in s6-log with slashpackage - integrated s6_svc_main.c's functionality into s6-svscanctl and deleted it - integrated Olivier Brunel's suggestions for wstat report in supervise/status - minor fixes to s6-supervise's status reports - separated sigaction calls in ftrigw_notifyb, this spares a few syscalls in s6-supervise - updated doc to reflect the changes - version bumped to 2.1.0.0 because API breakage (./finish, s6-svstat)
* - Parallel build fixv2.0.1.0Laurent Bercot2015-01-141-8/+12
| | | | | - Complete readiness notification via supervise/ready - Version updated to 2.0.1.0, release candidate
* Make ./event subdir private with s6-supervise's gid instead of public by defaultLaurent Bercot2014-12-071-1/+1
|
* Bugfix: WTERMSIG, not WIFSIGNAL for 2nd argument to ./finish in s6-superviseLaurent Bercot2014-12-051-1/+1
|