aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-03-21rc-update: fix typoScall
2018-03-16init.d/modules: add code from modules-load serviceWilliam Hubbs
There is no reason for these to be separate services. I did add a provide so that we don't break backward compatibility.
2018-03-16net-online: always start after netWilliam Hubbs
X-Gentoo-Bug: 650600 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650600
2018-03-14agetty.in: allow status to be displayedWilliam Hubbs
2018-03-14supervise-daemon: fix off-by-one errorWilliam Hubbs
2018-03-14Use _BSD_SOURCE on FreeBSDWilliam Hubbs
2018-03-14typo fixWilliam Hubbs
2018-03-13Remove _XOPEN_SOURCE macros from buildsWilliam Hubbs
2018-03-13Add _POSIX_C_SOURCE macro to FreeBSD buildWilliam Hubbs
2018-03-12man: document default retry specification for supervise-daemonWilliam Hubbs
2018-03-12man: document default retry sppecification for start-stop-daemonWilliam Hubbs
2018-03-11Clean up cgroups v2 codeWilliam Hubbs
Remove the IFS manipulation and simplify the loop that processes the settings.
2018-03-05init.d: swap should always be started after rootScall
Otherwise if a swap file is being used, and swap is started before root, swapon may fail because of a read-only filesystem.
2018-03-01openrc-run: fix memory size (#213)Chris Cromer
Fixes #212
2018-03-01fix build on FreeBSDWilliam Hubbs
2018-03-01version 0.36William Hubbs
2018-02-28Update ChangeLogWilliam Hubbs
2018-02-28init.sh: apply SELinux label for /run early in bootJason Zaman
Some initramfs mount /run which then ends up with the wrong labels. Force relabel all of /run right after its mounted to fix.
2018-02-28init-early.sh.Linux.in: apply the selinux label to /dev/console earlyJason Zaman
/dev/console is relabelled later in the devfs init script, but by then we have already missed some of the messages, so fix that label early.
2018-02-27supervise-daemon: make an error message more verboseWilliam Hubbs
2018-02-27cgroups: fix indentationWilliam Hubbs
2018-02-26cgroups: add rc_cgroup_memory_use_hierarchy setting for cgroups v1William 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-23check whether /sys/fs/cgroup is a mountpointChristian Brauner
The current check only tries to detect whether /sys/fs/cgroup exists and whether it is writable or not. But when the init system doesn't mount cgroups then /sys/fs/cgroup will just be an empty directory. When paired with unprivileged containers that mount sysfs this will cause misleading errors to be printed since /sys/fs/cgroup will be owned by user nobody:nogroup in this case. Independent of this specific problem this check will also be misleading when the /sys/fs/cgroup exists and is in fact writable by the init system but isn't actually a mountpoint. Note from William. "grep -qs" doesn't need to redirect output to /dev/null since it is completely silent. This fixes #209.
2018-02-23improve cgroup configuration checksWilliam Hubbs
make the base/controller functions return successfully if cgroups v1/v2 are not configured in the kernel
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-02-06man/openrc-run.8: fix mountinfo args.Michael Orlitzky
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.
2018-02-06man/openrc-run.8: add missing "Xo" tags for fstabinfo and mountinfo.Michael Orlitzky
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.