Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- remove references to PATH_MAX
- use xasprintf to create strings
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
X-Gentoo-Bug: 643084
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
|
|
X-Gentoo-Bug: 643084
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
|
|
|
|
|
|
|
|
Checkpath should never follow symbolic links when changing ownership of a file.
This is for https://github.com/openrc/openrc/issues/195.
|
|
Add a title, adjust the headings and update the example that referred to
"net.lo" to refer to "loopback".
|
|
This fixes #162.
|
|
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/
|
|
This removes the @VARBASE@ substitution since it is always translated to
/var.
|
|
|
|
I do not know of any situation where /etc/hostname is at any other
location. Also, this does not run on prefix.
|
|
This removes a reference to @SYSCONFDIR@.
|
|
For *BSD,the sysctl*.conf files are always in /etc.
|
|
Remove references to @SYSCONFDIR@ since these can be calculated at
runtime.
Also style fixes.
|
|
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since
they can be calculated at runtime.
|
|
The script should wait till the ping host is available or timeout reached
Closes : #179
Closes : #191
|
|
This is an improved test because it doesn't require the ip executable to be
in a specific path.
|
|
https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net
This is for #189
|
|
This is for #178.
|
|
Fixes https://bugs.gentoo.org/629228
Fixes #189
Fixes #185
Fixes #178
|
|
|
|
|
|
This fixes #188.
|
|
This works like the other --if options. If the service is crashed, run
the command.
This fixes #154.
|
|
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
|
|
|
|
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.
|
|
This is for #184.
|
|
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.
|