aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2018-02-26openrc: convert another execl() call to execlp()William Hubbs
2018-02-26openrc-init: convert execl calls to execlpWilliam Hubbs
2018-02-24kill_all: change execl call to execlpWilliam Hubbs
2018-02-24openrc-init: set a default pathWilliam 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-22openrc: force deptree update for sysinit runlevelWilliam Hubbs
2018-02-22supervise-daemon: zero out the cmdline buffer when it is allocatedWilliam Hubbs
2018-02-21start-stop-daemon: compiler warning cleanupWilliam Hubbs
2018-02-21openrc-run: clean up a compiler warningWilliam Hubbs
2018-02-21supervise-daemon: remove references to PATH_MAXWilliam Hubbs
2018-02-21rc.c: remove PATH_MAX referencesWilliam Hubbs
2018-02-20rc-selinux.c: remove references to path_maxWilliam Hubbs
2018-02-20rc-plubin.c: remove references to PATH_MAXWilliam Hubbs
2018-02-20rc-misc.c: remove references to PATH_MAXWilliam Hubbs
2018-02-16start-stop-daemon: clean up string handlingWilliam Hubbs
2018-02-15openrc-run: clean up string handlingWilliam Hubbs
- remove references to PATH_MAX - use xasprintf to create strings
2018-02-15rc-update: remove reference to PATH_MAXWilliam Hubbs
2018-02-14mountinfo: create strings with xasprintfWilliam Hubbs
2018-02-14kill_all: create strings with xasprintfWilliam Hubbs
2018-02-10helpers.h: silence compiler warnings about xasprintfWilliam Hubbs
2018-02-10xasprintf: exit if return value of vsnprintf is invalidWilliam Hubbs
2018-02-09helpers.h: add xasprintf functionWilliam 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-09helpers.h: style fixWilliam Hubbs
2018-01-24typo fixWilliam Hubbs
2018-01-23checkpath: use fchown and fchmod to handle ownership and mode changesWilliam 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-16checkpath: fix lchown error messageWilliam 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 successfulWilliam Hubbs
X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
2018-01-09checkpath: use lchown instead of chownWilliam 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-04rc-service: add --ifcrashed optionWilliam Hubbs
This works like the other --if options. If the service is crashed, run the command. This fixes #154.
2017-11-30Fix repeated dependency cache rebuild if clock skewedWill 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-29start-stop-daemon: properly handle missing pidfileDoug Freed
X-Gentoo-Bug: 639218 X-Gentoo-Bug-URL: https://bugs.gentoo.org/639218
2017-11-27fix FreeBSD buildWilliam Hubbs
This is for #186.
2017-11-19rc-schedules: if given nothing to look for, stopDoug 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-13rc_find_pids: namespace fixWilliam 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-07start-stop-daemon: do not use do_stop to verify whether a daemon is runningWilliam Hubbs
X-Gentoo-Bug: 636574 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=636574