Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-03-01 | openrc-run: fix memory size (#213) | Chris Cromer | |
Fixes #212 | |||
2018-02-27 | supervise-daemon: make an error message more verbose | William Hubbs | |
2018-02-26 | fstabinfo: fix an error message | William Hubbs | |
2018-02-26 | openrc: remove unused #define's. | William Hubbs | |
2018-02-26 | openrc: convert another execl() call to execlp() | William Hubbs | |
2018-02-26 | openrc-init: convert execl calls to execlp | William Hubbs | |
2018-02-24 | kill_all: change execl call to execlp | William Hubbs | |
2018-02-24 | openrc-init: set a default path | William Hubbs | |
The default path provided by the system if one isn't set only includes "/bin:/usr/bin". This adds the default path setting from sysvinit. | |||
2018-02-22 | openrc: force deptree update for sysinit runlevel | William Hubbs | |
2018-02-22 | supervise-daemon: zero out the cmdline buffer when it is allocated | William Hubbs | |
2018-02-21 | start-stop-daemon: compiler warning cleanup | William Hubbs | |
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-02-10 | helpers.h: silence compiler warnings about xasprintf | William Hubbs | |
2018-02-10 | xasprintf: exit if return value of vsnprintf is invalid | William Hubbs | |
2018-02-09 | helpers.h: add xasprintf function | William Hubbs | |
This is our own version of asprintf(). This original code was written by Mike Frysinger, and I was able to modify it to use our memory helper functions. We need a version of this code because it is not available on glibc at least without defining _GNU_SOURCE, and I would rather not do that. This is the first step in improving string handling in OpenRC for #207. | |||
2018-02-09 | helpers.h: style fix | 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-30 | Fix repeated dependency cache rebuild if clock skewed | Will Miles | |
rc_deptree_update_needed would return early as soon as it found any file newer than the existing dependency cache. Unfortunately, the first file found may not be the newest one there; so the clock skew workaround in rc-misc:_rc_deptree_load would be given a timestamp that was still too old. This fix forces a full scan of all relevant files, so as to ensure that we return a timestamp that will allow the clock skew fix to operate. The runtime cost is no worse than the case where the cache is up to date (ie. we must check every possible file). This fixes #161. | |||
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-13 | rc_find_pids: namespace fix | William Hubbs | |
Ignore namespaces if there are errors reading either the pid namespace for the current process or the process we aare testing. This fixes https://github.com/openrc/openrc/issues/180. | |||
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-26 | rc_service_value_set: remove the option if NULL is the value | William Hubbs | |
This allows the equivalent of "unsetting" a value for a service. | |||
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 | rc_find_pids: ignore pids that are not in our pid namespace | William Hubbs | |
X-Gentoo-Bug: 634634 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=634634 |