Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-12-03 | src/rc/supervise-daemon.c: fix style issue | Austin English | |
This is for #263. | |||
2018-12-03 | rc-status: show status for supervised services instead of a list | William Hubbs | |
2018-12-03 | supervise-daemon: use a default pid file if one is not specified | William Hubbs | |
Since the pid file is internal to us, start moving toward deprecating it by not requiring the user to specify it. In the next release, I plan on working on code to start phasing out the use of a pid file if this is possible. | |||
2018-12-02 | rc-status: add --supervised option to show supervised services | William Hubbs | |
2018-12-02 | rc-status: show failed services as failed | William Hubbs | |
2018-12-02 | supervise-daemon: mark a service failed if it respawns too many times | William Hubbs | |
2018-12-02 | supervise-daemon: make respawn-max and respawn-period independent settings | William Hubbs | |
2018-12-02 | supervise-daemon: add support for a fifo | William Hubbs | |
This will allow us to signal the daemon we are supervising as well as send other commands to the supervisor in the future. This fixes #227. | |||
2018-12-02 | supervise-daemon: rework signal handling and main loop | William Hubbs | |
This is needed in preparation for adding support for a fifo to allow us to communicate with the supervisor to ask it to signal the child it is supervising. | |||
2018-12-02 | Revert "checkpath: use O_PATH when available" | William Hubbs | |
This reverts commit 2af0cedd5952d7da71681b7a636dff3540e4295d. After speaking with Luis Ressel on the Gentoo selinux team, I am reverting this commit for the following reasons: - Luis told me that he feels this is not the solution we need to address the concern with checkpath; I will be working with him on another solution. - There are concerns about the way the path variable was handled and the assert() call. The path variable should be dynamically allocated using xasprintf instead of defining a length at compile time. This would eliminate the need for the assert() call. - It introduces the definition of _GNU_SOURCE which makes it easier to introduce portability concerns in the future (see #262). | |||
2018-12-01 | checkpath: use O_PATH when available | Mike Gilbert | |
This avoids opening directories/files with read permission, which is sometimes rejected by selinux policy. Bug: https://bugs.gentoo.org/667122 | |||
2018-11-28 | supervise-daemon: fix type of exiting flag | William Hubbs | |
2018-11-27 | src/tests/runtests.sh: add a FATAL_CHECKS variable to make whitespace/etc. fatal | Austin English | |
2018-11-27 | src/rc/openrc-shutdown.c: fix style | Austin English | |
2018-11-27 | fix misc whitespace issues | Austin English | |
2018-11-15 | supervise-daemon: make the pidfile an implementation detail | William Hubbs | |
The pidfile of the supervisor doesn't need to be adjustable by the service script. It is only used so the supervisor can stop itself when the --stop option is used. | |||
2018-11-15 | Do not complain if interrupted by a signal | William Hubbs | |
In start-stop-daemon and rc-schedules, we were printing out a warning if the nanosleep call was interrupted by a signal, but we did not treat this as an error situation other than displaying the message, so there is no need for the message. | |||
2018-11-05 | supervise-daemon: reap zombies | William Hubbs | |
We need to make sure to reap zombies so that we can shut down successfully. Fixes #252. Possibly related to #250. | |||
2018-11-05 | rc-service: fix help output | William Hubbs | |
2018-11-02 | openrc-init: add SELinux support | William Hubbs | |
This is for #173. | |||
2018-10-24 | openrc-shutdown: do not require a time for -w switch | William Hubbs | |
X-Gentoo-Bug: 669500 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=669500 | |||
2018-10-23 | supervise-daemon: add health checks | William Hubbs | |
Health checks are a way to monitor a service and make sure it stays healthy. If a service is not healthy, it will be automatically restarted after running the unhealthy() function to clean up. | |||
2018-10-18 | openrc-shutdown: Add scheduled shutdown and the ability to cancel a shutdown | William Hubbs | |
You can now schedule a shutdown for a certain time or a cpecific number of minutes into the future. When a shutdown is running, you can now cancel it with ^c from the keyboard or by running "openrc-shutdown -c" from another shell. | |||
2018-10-15 | supervise-daemon: fix respawn_max off by one | Zac Medico | |
Fix the comparison between respawn_count and respawn_max so that respawn_max = 1 will allow for one respawn. Since respawn_count is incremented before the comparison, use a 'greater than' comparison so that respawn will be triggered when respawn_count is equal to respawn_max. Fixes: https://github.com/OpenRC/openrc/issues/247 Fixes: https://github.com/OpenRC/openrc/issues/248 | |||
2018-10-13 | misc: style fixups | Austin English | |
2018-10-13 | misc: whitespace fixes | Austin English | |
2018-10-09 | Complete implementation of forever timeout value in stop schedules | William Hubbs | |
2018-10-06 | supervise-daemon: use nanosleep() instead of sleep() | William Hubbs | |
We will be using sigalrm in this process for health checking, and sigalrm cannot be used with sleep() safely. | |||
2018-10-06 | openrc-init: convert sleep() call to nanosleep() | William Hubbs | |
Nanosleep is the safer call to use in case we need to use alarms eventually. | |||
2018-08-06 | librc: fix EACCES errno false-positive crash | Zac Medico | |
Use errno != EACCES to fix false-positive for non-root users with grsecurity kernels. Fixes: 37e29442721a ("librc: Add check for crashed state") This fixes #237 | |||
2018-06-29 | rc-status: initialize uptime pointer to prevent memory corruption | Holger Hoffstätte | |
This fixes #231. | |||
2018-06-27 | supervise-daemon.c: clean up memory leaks | William Hubbs | |
2018-06-27 | librc-daemon.c: fix memory leaks | William Hubbs | |
2018-06-22 | librc-daemon: convert most snprintf calls to xasprintf | William Hubbs | |
2018-06-20 | librc-misc: convert snprintf calls to xasprintf | William Hubbs | |
2018-06-20 | libeinfo: convert remaining snprintf calls to xasprintf | William Hubbs | |
2018-06-20 | openrc: convert snprintf calls to xasprintf | William Hubbs | |
2018-06-19 | supervise-daemon: convert snprintf calls to xasprintf | William Hubbs | |
2018-06-19 | start-stop-daemon: convert snprintf calls to xasprintf | William Hubbs | |
2018-06-19 | rc-status: convert snprintf calls to xasprintf | William Hubbs | |
2018-06-19 | rc-status: fix gcc 7 warnings | William Hubbs | |
2018-06-19 | start-stop-daemon: fix gcc 7 warnings | William Hubbs | |
2018-06-19 | checkpath: fix gcc 7 warnings | William Hubbs | |
2018-06-19 | fix gcc 7 warnings in pipe routines | William Hubbs | |
2018-06-19 | libeinfo: clean up gcc 7 compiler warnings | William Hubbs | |
2018-06-15 | start-stop-daemon: add ability to log stdout or stderr to processes | William Hubbs | |
2018-06-14 | fix a typo | William Hubbs | |
2018-06-13 | Add helper to spawn process with stdin connected to a pipe | Mike Gilbert | |
2018-05-22 | Logger: only log printable characters and newlines | William Hubbs | |
X-Gentoo-Bug: 651412 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651412 | |||
2018-05-22 | Add mark_service_crashed binary | William Hubbs | |