aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-09checkpath: use lchown instead of chownWilliam Hubbs
Checkpath should never follow symbolic links when changing ownership of a file. This is for https://github.com/openrc/openrc/issues/195.
2018-01-08service-script-guide.md: formatting changesWilliam Hubbs
Add a title, adjust the headings and update the example that referred to "net.lo" to refer to "loopback".
2018-01-08service-script-guide.md: new guide for service script authors.Michael Orlitzky
This fixes #162.
2018-01-05net-online: only process symbolic links in /sys/class/net3PO
The /sys/class/net directory contains files which are not symlinks if the system has bonded devices [1]. We should ignore these files. This fixes #196. [1] https://elkano.org/blog/manage-interface-bondings-sysfs-interface/
2017-12-20init.d.examples: pid files always go in /varWilliam Hubbs
This removes the @VARBASE@ substitution since it is always translated to /var.
2017-12-14procfs: remove the @sysconfdir@ referenceWilliam Hubbs
2017-12-14hostname: replace @SYSCONFDIR@ references with /etcWilliam Hubbs
I do not know of any situation where /etc/hostname is at any other location. Also, this does not run on prefix.
2017-12-14hwclock: use shell variables for configuration file pathWilliam Hubbs
This removes a reference to @SYSCONFDIR@.
2017-12-14sysctl: hard code paths for sysctl files on *bsdWilliam Hubbs
For *BSD,the sysctl*.conf files are always in /etc.
2017-12-14local: misc cleanupsWilliam Hubbs
Remove references to @SYSCONFDIR@ since these can be calculated at runtime. Also style fixes.
2017-12-14devfs: cleanupWilliam Hubbs
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since they can be calculated at runtime.
2017-12-12net-online: wait for ping_test_hostbell07
The script should wait till the ping host is available or timeout reached Closes : #179 Closes : #191
2017-12-12network: use 'command -v ip' to test for the ip executableWilliam Hubbs
This is an improved test because it doesn't require the ip executable to be in a specific path.
2017-12-12Do not use file tests in net-onlineWilliam Hubbs
https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net This is for #189
2017-12-11net-online: clean up quoting and test for existenceWilliam Hubbs
This is for #178.
2017-12-11Gracefully handle unreadable /sys/class/net/dev/ nodesMarcel Greter
Fixes https://bugs.gentoo.org/629228 Fixes #189 Fixes #185 Fixes #178
2017-12-07Make bash-completion and zsh-completion optionalWilliam Hubbs
2017-12-07Add zsh-completion supportWilliam Hubbs
2017-12-06add bash completion supportWilliam Hubbs
This fixes #188.
2017-12-04rc-service: add --ifcrashed optionWilliam Hubbs
This works like the other --if options. If the service is crashed, run the command. This fixes #154.
2017-12-01Clean up the calls to group_add_serviceWilliam Hubbs
This function should only be called once and it does not take any arguments. X-Gentoo-Bug: 639166 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=639166
2017-11-30man/openrc-run.8: update documentation for command_userWilliam Hubbs
2017-11-30Fix repeated dependency cache rebuild if clock skewedWill Miles
rc_deptree_update_needed would return early as soon as it found any file newer than the existing dependency cache. Unfortunately, the first file found may not be the newest one there; so the clock skew workaround in rc-misc:_rc_deptree_load would be given a timestamp that was still too old. This fix forces a full scan of all relevant files, so as to ensure that we return a timestamp that will allow the clock skew fix to operate. The runtime cost is no worse than the case where the cache is up to date (ie. we must check every possible file). This fixes #161.
2017-11-29man/openrc-run.8: remove white spaceJulien Reichardt
This is for #184.
2017-11-29add more variables for start-stop-daemon and supervise-daemon optionsJulien Reichardt
Add the following variables to expose more arguments that can be passed to start-stop-daemon or supervise-daemon: - directory will be passed to --chdir - error_log will be passed to --stderr - output_log will be passed to --stdout - umask will be passed to umask This is for #184.
2017-11-29start-stop-daemon: properly handle missing pidfileDoug Freed
X-Gentoo-Bug: 639218 X-Gentoo-Bug-URL: https://bugs.gentoo.org/639218
2017-11-28split cgroups mounting out of sysfsWilliam Hubbs
This is neceessary to allow cgroups to be mounted in an lxc/lxd container. Fixes https://github.com/openrc/openrc/issues/187
2017-11-27fix FreeBSD buildWilliam Hubbs
This is for #186.
2017-11-19rc-schedules: if given nothing to look for, stopDoug Freed
This avoids trying to kill everything. X-Gentoo-Bug: 631958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=631958
2017-11-16s6 supervisor fixesWilliam Hubbs
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.
2017-11-14strongly encourage Linux users to not make /etc/mtab a flat fileWilliam Hubbs
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.
2017-11-14adjust mtab and localmount dependenciesWilliam Hubbs
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.
2017-11-13rc_find_pids: namespace fixWilliam Hubbs
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.
2017-11-07start-stop-daemon: do not use do_stop to verify whether a daemon is runningWilliam Hubbs
X-Gentoo-Bug: 636574 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=636574
2017-10-30fix issue with --reexec callWilliam Hubbs
2017-10-27supervise-daemon: use RC_SVCNAME as the first argument to the daemonWilliam Hubbs
This makes ps show which service the supervisor is monitoring.
2017-10-27supervise-daemon: fix logging for reexec and the child command lineWilliam Hubbs
2017-10-27log as supervise-daemon not the serviceWilliam Hubbs
2017-10-26supervise-daemon: clarify a log messageWilliam Hubbs
2017-10-26supervise-daemon: log the command line we run to spawn the child processWilliam Hubbs
2017-10-26supervise-daemon: log with the service name instead of "supervise-daemon"William Hubbs
2017-10-26implement "unsupervised" statusWilliam Hubbs
The unsupervised status is to be used when a supervisor of a supervised service dies but leaves the service daemon itself running.
2017-10-26supervise-daemon: remove child_pid from saved options during shutdownWilliam Hubbs
This allows us to detect when the supervisor dies unexpectedly because in that case child_pid will still exist.
2017-10-26rc_service_value_set: remove the option if NULL is the valueWilliam Hubbs
This allows the equivalent of "unsetting" a value for a service.
2017-10-25supervise-daemon.sh: fix status function with no namespacesWilliam Hubbs
2017-10-25cgroups_cleanup: clean up shutdown signalingPatrick McLean
- 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
2017-10-25add "unsupervised" status and return code 64 to supervise-daemon status functionWilliam Hubbs
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.
2017-10-24supervise-daemon: fix build issue for >=glibc-2.26William Hubbs
X-Gentoo-Bug: 635334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=635334
2017-10-24version 0.35William Hubbs
2017-10-24Update ChangeLogWilliam Hubbs