aboutsummaryrefslogtreecommitdiff
path: root/src/rc
AgeCommit message (Collapse)Author
2018-11-28supervise-daemon: fix type of exiting flagWilliam Hubbs
2018-11-27src/rc/openrc-shutdown.c: fix styleAustin English
2018-11-27fix misc whitespace issuesAustin English
2018-11-15supervise-daemon: make the pidfile an implementation detailWilliam 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-15Do not complain if interrupted by a signalWilliam 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-05supervise-daemon: reap zombiesWilliam Hubbs
We need to make sure to reap zombies so that we can shut down successfully. Fixes #252. Possibly related to #250.
2018-11-05rc-service: fix help outputWilliam Hubbs
2018-11-02openrc-init: add SELinux supportWilliam Hubbs
This is for #173.
2018-10-24openrc-shutdown: do not require a time for -w switchWilliam Hubbs
X-Gentoo-Bug: 669500 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=669500
2018-10-23supervise-daemon: add health checksWilliam 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-18openrc-shutdown: Add scheduled shutdown and the ability to cancel a shutdownWilliam 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-15supervise-daemon: fix respawn_max off by oneZac 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-13misc: style fixupsAustin English
2018-10-13misc: whitespace fixesAustin English
2018-10-09Complete implementation of forever timeout value in stop schedulesWilliam Hubbs
2018-10-06supervise-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-06openrc-init: convert sleep() call to nanosleep()William Hubbs
Nanosleep is the safer call to use in case we need to use alarms eventually.
2018-06-29rc-status: initialize uptime pointer to prevent memory corruptionHolger Hoffstätte
This fixes #231.
2018-06-27supervise-daemon.c: clean up memory leaksWilliam Hubbs
2018-06-20openrc: convert snprintf calls to xasprintfWilliam Hubbs
2018-06-19supervise-daemon: convert snprintf calls to xasprintfWilliam Hubbs
2018-06-19start-stop-daemon: convert snprintf calls to xasprintfWilliam Hubbs
2018-06-19rc-status: convert snprintf calls to xasprintfWilliam Hubbs
2018-06-19rc-status: fix gcc 7 warningsWilliam Hubbs
2018-06-19start-stop-daemon: fix gcc 7 warningsWilliam Hubbs
2018-06-19checkpath: fix gcc 7 warningsWilliam Hubbs
2018-06-19fix gcc 7 warnings in pipe routinesWilliam Hubbs
2018-06-15start-stop-daemon: add ability to log stdout or stderr to processesWilliam Hubbs
2018-06-14fix a typoWilliam Hubbs
2018-06-13Add helper to spawn process with stdin connected to a pipeMike Gilbert
2018-05-22Logger: only log printable characters and newlinesWilliam Hubbs
X-Gentoo-Bug: 651412 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651412
2018-05-22Add mark_service_crashed binaryWilliam Hubbs
2018-05-22rc-misc: add the crashed stateWilliam Hubbs
2018-05-18Remove the _rc_can_find_pids functionWilliam Hubbs
This test to find if we could see pid 1 was being used inconsistently in rc-status and mark_service_crashed to decide whether we could test to see if the daemon for the service was crashed, and it was not part of the librc library. I am removing it from the executables because of inconsistent usage. I will add it to the library if it is needed there.
2018-05-16rc-service: add --ifstarted and --ifstopped optionsWilliam Hubbs
2018-05-15rc-service: add -d/--debug and -D/--nodeps optionsWilliam Hubbs
2018-05-15openrc-run: respect the RC_NODEPS environment variableWilliam Hubbs
2018-05-15Add RC_DEBUG and RC_NODEPS to environment whitelistWilliam Hubbs
These are needed so rc-service can pass debug and nodeps options to openrc-run.
2018-05-14openrc-run: respect the IN_DRYRUN environment variableWilliam Hubbs
This allows rc-service to pass the tryrun option to openrc-run. This is for #225.
2018-05-14rc-misc.c: Add IN_DRYRUN to environment whitelistWilliam Hubbs
This allows rc-service to pass the dryrun option to openrc-run. This is for #225.
2018-05-14rc-service: add a --dry-run optionWilliam Hubbs
This is for #225.
2018-05-10Revert "Logger: only log printable characters and newlines"William Hubbs
This reverts commit 2b1392af2fe9e5dfc8eda2f19d896efdc41840bf. This seems to create issues shutting down, so I need to look into it further.
2018-05-09Logger: only log printable characters and newlinesWilliam Hubbs
X-Gentoo-Bug: 651412 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651412
2018-05-02start-stop-daemon: don't fail stopping if pidfile is goneAndrey Utkin
If pidfile does not exist when we are stopping the daemon, assume it is already stopped, and report success. hostapd is an example of a daemon which removes its pidfile when it is exiting. If this daemon terminates prematurely, that is, without s-s-d involvement, then openrc fails to restart it, because s-s-d "stop" command fails when pidfile is missing. X-Gentoo-Bug: 646274 X-Gentoo-Bug-URL: https://bugs.gentoo.org/646274
2018-03-21rc-update: fix typoScall
2018-03-14supervise-daemon: fix off-by-one errorWilliam Hubbs
2018-03-01openrc-run: fix memory size (#213)Chris Cromer
Fixes #212
2018-02-27supervise-daemon: make an error message more verboseWilliam Hubbs
2018-02-26fstabinfo: fix an error messageWilliam Hubbs
2018-02-26openrc: remove unused #define's.William Hubbs