aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* s6 supervisor fixesHEADmasterWilliam Hubbs8 days3-2/+27
| | | | | | Add the ability to force-kill a service if it does not go down successfully. Also, adjust the default wait time for an s6 service to go down to 60 seconds.
* strongly encourage Linux users to not make /etc/mtab a flat fileWilliam Hubbs10 days3-3/+30
| | | | | | The OpenRC team does not currently know of any modern linux tools that require /etc/mtab to be a flat file, so this puts users on notice that the mtab service will be removed in the future.
* adjust mtab and localmount dependenciesWilliam Hubbs10 days2-1/+2
| | | | | | localmount had mtab in its "use" dependencies; however, it makes more sense to add "before localmount" to the mtab service and remove "use mtab" from the localmount service.
* rc_find_pids: namespace fixWilliam Hubbs11 days1-1/+1
| | | | | | | Ignore namespaces if there are errors reading either the pid namespace for the current process or the process we aare testing. This fixes https://github.com/openrc/openrc/issues/180.
* start-stop-daemon: do not use do_stop to verify whether a daemon is runningWilliam Hubbs2017-11-071-2/+7
| | | | | X-Gentoo-Bug: 636574 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=636574
* fix issue with --reexec callWilliam Hubbs2017-10-301-1/+2
|
* supervise-daemon: use RC_SVCNAME as the first argument to the daemonWilliam Hubbs2017-10-272-10/+18
| | | | This makes ps show which service the supervisor is monitoring.
* supervise-daemon: fix logging for reexec and the child command lineWilliam Hubbs2017-10-271-2/+2
|
* log as supervise-daemon not the serviceWilliam Hubbs2017-10-271-1/+1
|
* supervise-daemon: clarify a log messageWilliam Hubbs2017-10-261-1/+1
|
* supervise-daemon: log the command line we run to spawn the child processWilliam Hubbs2017-10-261-0/+9
|
* supervise-daemon: log with the service name instead of "supervise-daemon"William Hubbs2017-10-261-1/+1
|
* implement "unsupervised" statusWilliam Hubbs2017-10-262-17/+15
| | | | | The unsupervised status is to be used when a supervisor of a supervised service dies but leaves the service daemon itself running.
* supervise-daemon: remove child_pid from saved options during shutdownWilliam Hubbs2017-10-261-0/+1
| | | | | This allows us to detect when the supervisor dies unexpectedly because in that case child_pid will still exist.
* rc_service_value_set: remove the option if NULL is the valueWilliam Hubbs2017-10-261-5/+8
| | | | This allows the equivalent of "unsetting" a value for a service.
* supervise-daemon.sh: fix status function with no namespacesWilliam Hubbs2017-10-251-0/+2
|
* cgroups_cleanup: clean up shutdown signalingPatrick McLean2017-10-251-4/+10
| | | | | - do not sleep for the full 90 seconds if processes are dead - re-arrange the order of signals we attempt to send to the processes
* add "unsupervised" status and return code 64 to supervise-daemon status functionWilliam Hubbs2017-10-251-1/+44
| | | | | | | | This is to be used if the service is being supervised and the supervisor is somehow killed. Currently, this is very linux specific, but I will expand to other platforms, patches are welcome.
* supervise-daemon: fix build issue for >=glibc-2.26William Hubbs2017-10-241-0/+2
| | | | | X-Gentoo-Bug: 635334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=635334
* version 0.35William Hubbs2017-10-241-1/+1
|
* Update ChangeLog0.34William Hubbs2017-10-241-8/+42
|
* rc_find_pids: ignore pids that are not in our pid namespaceWilliam Hubbs2017-10-241-0/+19
| | | | | X-Gentoo-Bug: 634634 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=634634
* supervise-daemon: multiple fixesWilliam Hubbs2017-10-243-240/+343
| | | | | | | - Harden against dying by handling all signals that would terminate the program and adding --reexec support - factor the supervisor into its own function - fix test for whether we are already running
* supervise-daemon: elevate some log messages to warningsWilliam Hubbs2017-10-181-3/+3
| | | | | | Prior to this change, we were logging unexpected terminations of daemons we were supervising at the info level. This change moves the logs to warnings.
* version 0.34William Hubbs2017-10-131-1/+1
|
* Update ChangeLog0.33William Hubbs2017-10-131-42/+65
|
* update newsWilliam Hubbs2017-10-121-0/+9
|
* man: remove service(8) man pageWilliam Hubbs2017-10-122-2/+1
|
* typo fixWilliam Hubbs2017-10-101-1/+1
|
* init.d/sysfs.in: fix reference to RC_LIBEXECDIRWilliam Hubbs2017-10-091-1/+1
| | | | | | The sysfs init script referred to @LIBEXECDIR@ before this change, but it is better to refer to RC_LIBEXECDIR so that we get rid of a sed substitution.
* add option to make agetty startup quietChris Cromer2017-10-062-0/+4
| | | | This fixes #150
* fix compiler warningWilliam Hubbs2017-10-051-1/+2
|
* remove service binaryWilliam Hubbs2017-10-022-5/+2
| | | | | | | The service binary was just a synonym for rc-service, so use rc-service instead of service. If you want a "service" binary, it should be something that can determine which service manager you are running and run the appropriate service manager commands.
* version 0.33William Hubbs2017-10-021-1/+1
|
* Update ChangeLog0.32William Hubbs2017-10-021-137/+116
|
* use printf consistently in cgroups handlingWilliam Hubbs2017-09-291-3/+3
| | | | | This makes the cgroups handling consistent between cgroups v1 and v2. Also, it fixes #167.
* sh/rc-functions.sh: add need_if_exists convenience functionWilliam Hubbs2017-09-221-0/+7
|
* man/openrc-run.8: Clarify the explanation of the need dependencyWilliam Hubbs2017-09-221-2/+4
|
* ignore sigchld when shutting down the supervised processWilliam Hubbs2017-09-181-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 Hubbs2017-09-181-0/+1
|
* typo fixWilliam Hubbs2017-09-181-1/+1
|
* supervise-daemon: code cleanupWilliam Hubbs2017-09-181-10/+12
| | | | Clean up the process for killing an active supervisor when stopping.
* initialize the stop scheduleWilliam Hubbs2017-09-182-6/+1
|
* rc-schedules.c: pass the correct pid to rc_find_pidsWilliam Hubbs2017-09-171-2/+2
| | | | This is for #163.
* selinux: fix const qualifier warningJason Zaman2017-09-171-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 Zaman2017-09-171-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 Hubbs2017-09-161-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 Hubbs2017-09-161-4/+6
| | | | This is related to #164.
* version 0.32William Hubbs2017-09-161-1/+1
|
* Update ChangeLog0.31William Hubbs2017-09-151-89/+99
|