aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-18typo fixWilliam Hubbs
2017-09-18supervise-daemon: code cleanupWilliam Hubbs
Clean up the process for killing an active supervisor when stopping.
2017-09-18initialize the stop scheduleWilliam Hubbs
2017-09-17rc-schedules.c: pass the correct pid to rc_find_pidsWilliam Hubbs
This is for #163.
2017-09-17selinux: fix const qualifier warningJason Zaman
rc-selinux.c: In function ‘selinux_setup’: rc-selinux.c:361:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] curr_t = context_type_get(curr_con); ^
2017-09-17selinux: use openrc contexts path to get contextsJason Zaman
The minimum requirement for libselinux is now >=2.6 The refpolicy and the gentoo policy contain the contexts since version 2.20170204-r4
2017-09-16sysfs: fix cgroup hybrid modeWilliam Hubbs
In hybrid mode, we should not try to mount cgroup2 if it is not available in the kernel. This fixes #164.
2017-09-16cgroup2_find_path: use legacy mode if cgroup2 is not in the kernelWilliam Hubbs
This is related to #164.
2017-09-16version 0.32William Hubbs
2017-09-15Update ChangeLogWilliam Hubbs
2017-09-15update news fileWilliam Hubbs
2017-09-15cgroup_cleanup: try to remove the cgroup version 2 cgroupWilliam Hubbs
If we were able to kill all the processes in the cgroup, it should be removed.
2017-09-15rc-cgroup.sh: cgroup_cleanup fix error handlingWilliam Hubbs
cgroup_cleanup should warn if it is unable to clean up all processes in the control group, but it will always return success.
2017-09-15rc-cgroup.sh: fix signal namesWilliam Hubbs
The "SIG" prefix on signal names passed to kill -s isn't portable.
2017-09-14add quiet switch to do_stop in src-schedules.cWilliam Hubbs
This allows supervise-daemon to run this code without attempting to print some status messages used by start-stop-daemon.
2017-09-14make the procedure for killing child processes of services configurableWilliam Hubbs
2017-09-14Make cgroup_cleanup send only one sigterm and sigkillWilliam Hubbs
Instead of looping and sending multiple signals to child processes in cgroup_cleanup, we send sigterm followed by sleeping one second then sigkill. This brings us more in line with systemd's "control group" killmode setting. Also, this commit includes several shellcheck cleanups.
2017-09-14rc-cgroup.sh: move cgroup_cleanup to the end of the fileWilliam Hubbs
2017-09-14guide.md: clarify cgroups documentationWilliam Hubbs
Update the documentation to reflect cgroups version 2 support. Also, add a section on dealing with orphaned service processes. This fixes #94.
2017-09-14add support for control groups version 2William Hubbs
This is for #94.
2017-09-07version 0.31William Hubbs
2017-09-06Update ChangeLogWilliam Hubbs
2017-09-06add quiet parameter to run_stop_scheduleWilliam Hubbs
2017-09-06add retry option to supervise-daemonWilliam Hubbs
The --retry option for supervise-daemon defines how the supervisor will attempt to stop the child process it is monitoring. It is defined when the supervisor is started since stopping the supervisor just sends a signal to the active supervisor. This fixes #160.
2017-08-25make run_stop_schedule accept a pid instead of a pid fileWilliam Hubbs
2017-08-24version 0.30William Hubbs
2017-08-24start-stop-daemon: move --retry processing code to a shared moduleWilliam Hubbs
This was part of start-stop-daemon; however, it needs to be shared in order to be used by supervise-daemon.
2017-08-23move get_pid function to a shared fileWilliam Hubbs
2017-08-16Update ChangeLogWilliam Hubbs
2017-08-15sh/openrc-run: source service script before ulimit is processedWilliam Hubbs
This is needed to allow the service script author to set a default for rc_ulimit inside the service script.
2017-07-26man/openrc-run.8: document fstabinfo and mountinfoWilliam Hubbs
X-Gentoo-Bug: 592374 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=592374
2017-07-25man/openrc-run.8: document _pre and _post functionsWilliam Hubbs
Fixes https://github.com/openrc/openrc/issues/155.
2017-07-24fix ENT macro usageJason Graham
X-Gentoo-Bug: 624796 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624796
2017-07-24version 0.29William Hubbs
2017-07-24Typo fixJohn R. Graham
X-Gentoo-Bug: 624908 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624908
2017-07-13Update ChangeLogWilliam Hubbs
2017-07-13Add comment about overriding the default efivars mount in fstab to newsWilliam Hubbs
2017-07-11add link to efivars issue to news fileWilliam Hubbs
2017-07-11Update ChangeLogWilliam Hubbs
2017-07-11fix sysvinit compatibility for shutdown wrapperWilliam Hubbs
2017-07-11fix sysvinit compatibility for reboot wrapperWilliam Hubbs
2017-07-11fix sysvinit compatibility for poweroff wrapperWilliam Hubbs
2017-07-10fix halt wrapper so it is sysvinit compatibleWilliam Hubbs
This makes the halt wrapper sysvinit compatible. It ignores several command line switches which are not currently implemented; however, those can be implemented if we need to do so. This fixes https://github.com/openrc/openrc/issues/146.
2017-07-07man: fix an unclosed .Bl/.El warningAdam Borowski
This fixes #151.
2017-07-07man: fix missing .Pp warningsAdam Borowski
This fixes #151.
2017-06-13init.d/sysfs: mount efivars read onlyWilliam Hubbs
This fixes #134.
2017-06-12fix argument parsing for the sysvinit shutdown wrapperWilliam Hubbs
This fixes #140.
2017-06-12scripts/shutdown: fix arguments to be sysvinit shutdown compatibleWilliam Hubbs
This fixes #140.
2017-06-12Fix link to shutdown for MKSYSVINIT=yesWilliam Hubbs
2017-06-12init.d/hostname: fix default parameter syntaxNuno Silva
The syntax for expanding a variable with a default value is ${parameter:-word} not ${parameter-word} although the latter still works for a reason I could not explain. This fixes #143.