Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-02-21 | openrc-run: clean up a compiler warning | William Hubbs | |
2018-02-21 | supervise-daemon: remove references to PATH_MAX | William Hubbs | |
2018-02-21 | rc.c: remove PATH_MAX references | William Hubbs | |
2018-02-20 | rc-selinux.c: remove references to path_max | William Hubbs | |
2018-02-20 | rc-plubin.c: remove references to PATH_MAX | William Hubbs | |
2018-02-20 | rc-misc.c: remove references to PATH_MAX | William Hubbs | |
2018-02-16 | start-stop-daemon: clean up string handling | William Hubbs | |
2018-02-15 | openrc-run: clean up string handling | William Hubbs | |
- remove references to PATH_MAX - use xasprintf to create strings | |||
2018-02-15 | rc-update: remove reference to PATH_MAX | William Hubbs | |
2018-02-14 | mountinfo: create strings with xasprintf | William Hubbs | |
2018-02-14 | kill_all: create strings with xasprintf | William Hubbs | |
2018-01-24 | typo fix | William Hubbs | |
2018-01-23 | checkpath: use fchown and fchmod to handle ownership and mode changes | William Hubbs | |
This is related to #195. This is an attempt to shorten the window for the first two issues discussed by using a file descriptor which does not follow symbolic links and using the fchmod and fchown calls instead of chown and chmod. with. | |||
2018-01-16 | checkpath: fix lchown error message | William Hubbs | |
X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084 | |||
2018-01-16 | _rc_deptree_load - return NULL if the stat() call is not successful | William Hubbs | |
X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084 | |||
2018-01-09 | checkpath: use lchown instead of chown | William Hubbs | |
Checkpath should never follow symbolic links when changing ownership of a file. This is for https://github.com/openrc/openrc/issues/195. | |||
2017-12-04 | rc-service: add --ifcrashed option | William Hubbs | |
This works like the other --if options. If the service is crashed, run the command. This fixes #154. | |||
2017-11-29 | start-stop-daemon: properly handle missing pidfile | Doug Freed | |
X-Gentoo-Bug: 639218 X-Gentoo-Bug-URL: https://bugs.gentoo.org/639218 | |||
2017-11-27 | fix FreeBSD build | William Hubbs | |
This is for #186. | |||
2017-11-19 | rc-schedules: if given nothing to look for, stop | Doug Freed | |
This avoids trying to kill everything. X-Gentoo-Bug: 631958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=631958 | |||
2017-11-07 | start-stop-daemon: do not use do_stop to verify whether a daemon is running | William Hubbs | |
X-Gentoo-Bug: 636574 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=636574 | |||
2017-10-30 | fix issue with --reexec call | William Hubbs | |
2017-10-27 | supervise-daemon: use RC_SVCNAME as the first argument to the daemon | William Hubbs | |
This makes ps show which service the supervisor is monitoring. | |||
2017-10-27 | supervise-daemon: fix logging for reexec and the child command line | William Hubbs | |
2017-10-27 | log as supervise-daemon not the service | William Hubbs | |
2017-10-26 | supervise-daemon: clarify a log message | William Hubbs | |
2017-10-26 | supervise-daemon: log the command line we run to spawn the child process | William Hubbs | |
2017-10-26 | supervise-daemon: log with the service name instead of "supervise-daemon" | William Hubbs | |
2017-10-26 | implement "unsupervised" status | William Hubbs | |
The unsupervised status is to be used when a supervisor of a supervised service dies but leaves the service daemon itself running. | |||
2017-10-26 | supervise-daemon: remove child_pid from saved options during shutdown | William Hubbs | |
This allows us to detect when the supervisor dies unexpectedly because in that case child_pid will still exist. | |||
2017-10-24 | supervise-daemon: fix build issue for >=glibc-2.26 | William Hubbs | |
X-Gentoo-Bug: 635334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=635334 | |||
2017-10-24 | supervise-daemon: multiple fixes | William Hubbs | |
- Harden against dying by handling all signals that would terminate the program and adding --reexec support - factor the supervisor into its own function - fix test for whether we are already running | |||
2017-10-18 | supervise-daemon: elevate some log messages to warnings | William Hubbs | |
Prior to this change, we were logging unexpected terminations of daemons we were supervising at the info level. This change moves the logs to warnings. | |||
2017-10-05 | fix compiler warning | William Hubbs | |
2017-10-02 | remove service binary | William Hubbs | |
The service binary was just a synonym for rc-service, so use rc-service instead of service. If you want a "service" binary, it should be something that can determine which service manager you are running and run the appropriate service manager commands. | |||
2017-09-18 | ignore sigchld when shutting down the supervised process | William Hubbs | |
We need to do this to skip the zombie state for the child process since we are not easily able to wait() for it. | |||
2017-09-18 | typo fix | William Hubbs | |
2017-09-18 | typo fix | William Hubbs | |
2017-09-18 | supervise-daemon: code cleanup | William Hubbs | |
Clean up the process for killing an active supervisor when stopping. | |||
2017-09-18 | initialize the stop schedule | William Hubbs | |
2017-09-17 | rc-schedules.c: pass the correct pid to rc_find_pids | William Hubbs | |
This is for #163. | |||
2017-09-17 | selinux: fix const qualifier warning | Jason Zaman | |
rc-selinux.c: In function ‘selinux_setup’: rc-selinux.c:361:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] curr_t = context_type_get(curr_con); ^ | |||
2017-09-17 | selinux: use openrc contexts path to get contexts | Jason Zaman | |
The minimum requirement for libselinux is now >=2.6 The refpolicy and the gentoo policy contain the contexts since version 2.20170204-r4 | |||
2017-09-14 | add quiet switch to do_stop in src-schedules.c | William Hubbs | |
This allows supervise-daemon to run this code without attempting to print some status messages used by start-stop-daemon. | |||
2017-09-06 | add quiet parameter to run_stop_schedule | William Hubbs | |
2017-09-06 | add retry option to supervise-daemon | William Hubbs | |
The --retry option for supervise-daemon defines how the supervisor will attempt to stop the child process it is monitoring. It is defined when the supervisor is started since stopping the supervisor just sends a signal to the active supervisor. This fixes #160. | |||
2017-08-25 | make run_stop_schedule accept a pid instead of a pid file | William Hubbs | |
2017-08-24 | start-stop-daemon: move --retry processing code to a shared module | William Hubbs | |
This was part of start-stop-daemon; however, it needs to be shared in order to be used by supervise-daemon. | |||
2017-08-23 | move get_pid function to a shared file | William Hubbs | |
2017-07-24 | fix ENT macro usage | Jason Graham | |
X-Gentoo-Bug: 624796 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624796 |