aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sh/rc-functions.sh: add need_if_exists convenience functionHEADmasterWilliam Hubbs3 days1-0/+7
|
* man/openrc-run.8: Clarify the explanation of the need dependencyWilliam Hubbs3 days1-2/+4
|
* ignore sigchld when shutting down the supervised processWilliam Hubbs7 days1-0/+1
| | | | | We need to do this to skip the zombie state for the child process since we are not easily able to wait() for it.
* typo fixWilliam Hubbs7 days1-0/+1
|
* typo fixWilliam Hubbs7 days1-1/+1
|
* supervise-daemon: code cleanupWilliam Hubbs7 days1-10/+12
| | | | Clean up the process for killing an active supervisor when stopping.
* initialize the stop scheduleWilliam Hubbs7 days2-6/+1
|
* rc-schedules.c: pass the correct pid to rc_find_pidsWilliam Hubbs8 days1-2/+2
| | | | This is for #163.
* selinux: fix const qualifier warningJason Zaman8 days1-2/+1
| | | | | | | 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); ^
* selinux: use openrc contexts path to get contextsJason Zaman8 days1-2/+21
| | | | | | The minimum requirement for libselinux is now >=2.6 The refpolicy and the gentoo policy contain the contexts since version 2.20170204-r4
* sysfs: fix cgroup hybrid modeWilliam Hubbs9 days1-8/+17
| | | | | | | In hybrid mode, we should not try to mount cgroup2 if it is not available in the kernel. This fixes #164.
* cgroup2_find_path: use legacy mode if cgroup2 is not in the kernelWilliam Hubbs9 days1-4/+6
| | | | This is related to #164.
* version 0.32William Hubbs9 days1-1/+1
|
* Update ChangeLog0.31William Hubbs10 days1-89/+99
|
* update news fileWilliam Hubbs10 days1-0/+6
|
* cgroup_cleanup: try to remove the cgroup version 2 cgroupWilliam Hubbs10 days1-0/+1
| | | | | If we were able to kill all the processes in the cgroup, it should be removed.
* rc-cgroup.sh: cgroup_cleanup fix error handlingWilliam Hubbs10 days1-1/+3
| | | | | cgroup_cleanup should warn if it is unable to clean up all processes in the control group, but it will always return success.
* rc-cgroup.sh: fix signal namesWilliam Hubbs10 days1-4/+4
| | | | The "SIG" prefix on signal names passed to kill -s isn't portable.
* add quiet switch to do_stop in src-schedules.cWilliam Hubbs11 days4-13/+13
| | | | | This allows supervise-daemon to run this code without attempting to print some status messages used by start-stop-daemon.
* make the procedure for killing child processes of services configurableWilliam Hubbs11 days2-8/+34
|
* Make cgroup_cleanup send only one sigterm and sigkillWilliam Hubbs11 days2-35/+43
| | | | | | | | | | | 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.
* rc-cgroup.sh: move cgroup_cleanup to the end of the fileWilliam Hubbs11 days1-19/+19
|
* guide.md: clarify cgroups documentationWilliam Hubbs11 days1-9/+28
| | | | | | | Update the documentation to reflect cgroups version 2 support. Also, add a section on dealing with orphaned service processes. This fixes #94.
* add support for control groups version 2William Hubbs11 days4-29/+182
| | | | This is for #94.
* version 0.31William Hubbs2017-09-071-1/+1
|
* Update ChangeLog0.30William Hubbs2017-09-061-138/+52
|
* add quiet parameter to run_stop_scheduleWilliam Hubbs2017-09-064-8/+9
|
* add retry option to supervise-daemonWilliam Hubbs2017-09-064-4/+30
| | | | | | | | | 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.
* make run_stop_schedule accept a pid instead of a pid fileWilliam Hubbs2017-08-253-12/+5
|
* version 0.30William Hubbs2017-08-241-1/+1
|
* start-stop-daemon: move --retry processing code to a shared moduleWilliam Hubbs2017-08-244-395/+461
| | | | | This was part of start-stop-daemon; however, it needs to be shared in order to be used by supervise-daemon.
* move get_pid function to a shared fileWilliam Hubbs2017-08-234-54/+30
|
* Update ChangeLog0.29William Hubbs2017-08-161-214/+56
|
* sh/openrc-run: source service script before ulimit is processedWilliam Hubbs2017-08-151-3/+3
| | | | | This is needed to allow the service script author to set a default for rc_ulimit inside the service script.
* man/openrc-run.8: document fstabinfo and mountinfoWilliam Hubbs2017-07-261-0/+36
| | | | | X-Gentoo-Bug: 592374 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=592374
* man/openrc-run.8: document _pre and _post functionsWilliam Hubbs2017-07-251-0/+12
| | | | Fixes https://github.com/openrc/openrc/issues/155.
* fix ENT macro usageJason Graham2017-07-241-18/+18
| | | | | X-Gentoo-Bug: 624796 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624796
* version 0.29William Hubbs2017-07-241-1/+1
|
* Typo fixJohn R. Graham2017-07-241-1/+1
| | | | | X-Gentoo-Bug: 624908 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624908
* Update ChangeLog0.28William Hubbs2017-07-131-16/+18
|
* Add comment about overriding the default efivars mount in fstab to newsWilliam Hubbs2017-07-131-1/+4
|
* add link to efivars issue to news fileWilliam Hubbs2017-07-111-0/+4
|
* Update ChangeLogWilliam Hubbs2017-07-111-54/+138
|
* fix sysvinit compatibility for shutdown wrapperWilliam Hubbs2017-07-111-10/+18
|
* fix sysvinit compatibility for reboot wrapperWilliam Hubbs2017-07-111-1/+23
|
* fix sysvinit compatibility for poweroff wrapperWilliam Hubbs2017-07-111-1/+21
|
* fix halt wrapper so it is sysvinit compatibleWilliam Hubbs2017-07-101-1/+22
| | | | | | | | 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.
* man: fix an unclosed .Bl/.El warningAdam Borowski2017-07-071-0/+1
| | | | This fixes #151.
* man: fix missing .Pp warningsAdam Borowski2017-07-071-6/+6
| | | | This fixes #151.
* init.d/sysfs: mount efivars read onlyWilliam Hubbs2017-06-132-1/+8
| | | | This fixes #134.