aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rc-selinux.c: remove references to path_maxHEADmasterWilliam Hubbs17 hours1-3/+4
|
* rc-plubin.c: remove references to PATH_MAXWilliam Hubbs17 hours1-2/+3
|
* rc-misc.c: remove references to PATH_MAXWilliam Hubbs19 hours1-8/+11
|
* start-stop-daemon: clean up string handlingWilliam Hubbs5 days1-16/+17
|
* openrc-run: clean up string handlingWilliam Hubbs6 days1-24/+37
| | | | | - remove references to PATH_MAX - use xasprintf to create strings
* rc-update: remove reference to PATH_MAXWilliam Hubbs6 days1-1/+3
|
* mountinfo: create strings with xasprintfWilliam Hubbs7 days1-10/+11
|
* kill_all: create strings with xasprintfWilliam Hubbs7 days1-8/+17
|
* helpers.h: silence compiler warnings about xasprintfWilliam Hubbs11 days1-1/+3
|
* xasprintf: exit if return value of vsnprintf is invalidWilliam Hubbs11 days1-7/+4
|
* helpers.h: add xasprintf functionWilliam Hubbs12 days1-0/+49
| | | | | | | | | | | 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.
* helpers.h: style fixWilliam Hubbs12 days1-2/+4
|
* man/openrc-run.8: fix mountinfo args.Michael Orlitzky2018-02-061-1/+1
| | | | | | | | | | | | | | | The "Ar" tag for the mountinfo command contained a typo (leading space) that resulted in the tag being output verbatim; that is, mountinfo ... .Ar mount1 mount2 rather than e.g. mountinfo ... <mount1> <mount2> This commit deletes the leading space to fix the output. This fixes #204.
* man/openrc-run.8: add missing "Xo" tags for fstabinfo and mountinfo.Michael Orlitzky2018-02-061-0/+2
| | | | | | | | The BUILTINS are all surrounded by Xo...Xc tags, but the opening "Xo" was missing from the two commands fstabinfo and mountinfo. This commit adds them, and thereby fixes the spacing when viewed by man. This is for #204.
* service-script-guide.md cleanupsWilliam Hubbs2018-01-241-12/+12
| | | | | | | Refer to /var/run in the documentation instead of /run, and make it clear at the top of the pidfile section that we use /run under Linux. This is for #202.
* typo fixWilliam Hubbs2018-01-241-1/+1
|
* checkpath: use fchown and fchmod to handle ownership and mode changesWilliam Hubbs2018-01-231-45/+79
| | | | | | | | | 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.
* checkpath: fix lchown error messageWilliam Hubbs2018-01-161-1/+1
| | | | | X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
* _rc_deptree_load - return NULL if the stat() call is not successfulWilliam Hubbs2018-01-161-1/+4
| | | | | X-Gentoo-Bug: 643084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
* Reformat and fix titles in documentationWilliam Hubbs2018-01-1216-23/+47
|
* Rename guide.md to user-guide.md to better describe its purposeWilliam Hubbs2018-01-111-0/+0
|
* move developer documentation from guide.md to service-script-guide.mdWilliam Hubbs2018-01-102-117/+117
|
* checkpath: use lchown instead of chownWilliam Hubbs2018-01-091-1/+1
| | | | | | Checkpath should never follow symbolic links when changing ownership of a file. This is for https://github.com/openrc/openrc/issues/195.
* service-script-guide.md: formatting changesWilliam Hubbs2018-01-081-13/+15
| | | | | Add a title, adjust the headings and update the example that referred to "net.lo" to refer to "loopback".
* service-script-guide.md: new guide for service script authors.Michael Orlitzky2018-01-081-0/+381
| | | | This fixes #162.
* net-online: only process symbolic links in /sys/class/net3PO2018-01-051-0/+1
| | | | | | | | | The /sys/class/net directory contains files which are not symlinks if the system has bonded devices [1]. We should ignore these files. This fixes #196. [1] https://elkano.org/blog/manage-interface-bondings-sysfs-interface/
* init.d.examples: pid files always go in /varWilliam Hubbs2017-12-2010-12/+10
| | | | | This removes the @VARBASE@ substitution since it is always translated to /var.
* procfs: remove the @sysconfdir@ referenceWilliam Hubbs2017-12-141-2/+2
|
* hostname: replace @SYSCONFDIR@ references with /etcWilliam Hubbs2017-12-141-3/+3
| | | | | I do not know of any situation where /etc/hostname is at any other location. Also, this does not run on prefix.
* hwclock: use shell variables for configuration file pathWilliam Hubbs2017-12-141-1/+1
| | | | This removes a reference to @SYSCONFDIR@.
* sysctl: hard code paths for sysctl files on *bsdWilliam Hubbs2017-12-141-1/+1
| | | | For *BSD,the sysctl*.conf files are always in /etc.
* local: misc cleanupsWilliam Hubbs2017-12-141-17/+20
| | | | | | Remove references to @SYSCONFDIR@ since these can be calculated at runtime. Also style fixes.
* devfs: cleanupWilliam Hubbs2017-12-141-4/+7
| | | | | clean up local definitions. Also remove @SYSCONFDIR@ substitutions since they can be calculated at runtime.
* net-online: wait for ping_test_hostbell072017-12-121-2/+6
| | | | | | The script should wait till the ping host is available or timeout reached Closes : #179 Closes : #191
* network: use 'command -v ip' to test for the ip executableWilliam Hubbs2017-12-121-3/+3
| | | | | This is an improved test because it doesn't require the ip executable to be in a specific path.
* Do not use file tests in net-onlineWilliam Hubbs2017-12-121-6/+4
| | | | | | https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net This is for #189
* net-online: clean up quoting and test for existenceWilliam Hubbs2017-12-111-3/+7
| | | | This is for #178.
* Gracefully handle unreadable /sys/class/net/dev/ nodesMarcel Greter2017-12-111-5/+5
| | | | | | | Fixes https://bugs.gentoo.org/629228 Fixes #189 Fixes #185 Fixes #178
* Make bash-completion and zsh-completion optionalWilliam Hubbs2017-12-072-2/+15
|
* Add zsh-completion supportWilliam Hubbs2017-12-077-2/+96
|
* add bash completion supportWilliam Hubbs2017-12-068-1/+254
| | | | This fixes #188.
* rc-service: add --ifcrashed optionWilliam Hubbs2017-12-042-1/+13
| | | | | | | This works like the other --if options. If the service is crashed, run the command. This fixes #154.
* Clean up the calls to group_add_serviceWilliam Hubbs2017-12-011-2/+1
| | | | | | | | This function should only be called once and it does not take any arguments. X-Gentoo-Bug: 639166 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=639166
* man/openrc-run.8: update documentation for command_userWilliam Hubbs2017-11-301-3/+5
|
* Fix repeated dependency cache rebuild if clock skewedWill Miles2017-11-301-52/+71
| | | | | | | | | | | | | | | 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.
* man/openrc-run.8: remove white spaceJulien Reichardt2017-11-291-2/+2
| | | | This is for #184.
* add more variables for start-stop-daemon and supervise-daemon optionsJulien Reichardt2017-11-293-0/+28
| | | | | | | | | | | | Add the following variables to expose more arguments that can be passed to start-stop-daemon or supervise-daemon: - directory will be passed to --chdir - error_log will be passed to --stderr - output_log will be passed to --stdout - umask will be passed to umask This is for #184.
* start-stop-daemon: properly handle missing pidfileDoug Freed2017-11-291-1/+8
| | | | X-Gentoo-Bug: 639218 X-Gentoo-Bug-URL: https://bugs.gentoo.org/639218
* split cgroups mounting out of sysfsWilliam Hubbs2017-11-286-116/+170
| | | | | | | This is neceessary to allow cgroups to be mounted in an lxc/lxd container. Fixes https://github.com/openrc/openrc/issues/187
* fix FreeBSD buildWilliam Hubbs2017-11-271-2/+6
| | | | This is for #186.