aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-11build: standardize installation modesWilliam Hubbs
Gentoo was changing some of our installation modes from 0444 to 0644. There isn't a reason to install things 0444, so we are switching these to 0644 so the Gentoo ebuild doesn't need this extra step.
2018-05-11Revert "savecache: stop saving the dependency tree"William Hubbs
It is safe to save the deptree, but we also need to regenerate it at boot time.
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-07Remove localmount from dependencies for linux-only servicesWilliam Hubbs
This removes localmount from the dependencies of the consolefont, keymaps, numlock and procfs services. These services are Linux only and the default modern linux system has / and /usr on the same file system. This also fixes the following issue. X-Gentoo-Bug: 651998 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651998
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-05-01Add _POSIX_C_SOURCE definition to Linux buildWilliam Hubbs
We need this to allow builds on uclibc-ng based systems. X-Gentoo-Bug: 650908 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650908
2018-04-24typo fixWilliam Hubbs
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