aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-10FEATURE_REMOVAL_SCHEDULE: add entry for local_start/stopWilliam Hubbs
2014-07-09init.d/local: bring functioning more in line with how sysctl worksWilliam Hubbs
- remove the has_executables variable since it isn't used. - Convert the conditional calls to ewend/vewend to a single call to veend. - Always call eend after all scripts are executed passing the appropriate error code. Because of this change, you will see only an overall status when starting or stopping local unless you are using verbose mode.
2014-07-05Add support for verbose "local" service runscriptThomas D
With this patch, the "local" service runscript will be verbose like the "sysctl" service when 'rc_verbose="yes"' is set. Example output successful start: * Stopping local ... * Executing "/etc/local.d/00will-stop.stop" ... [ ok ] * Starting local ... * Executing "/etc/local.d/00will-start.start" ... [ ok ] * Executing "/etc/local.d/01 test.start" ... [ ok ] Example output with failing executables: * Stopping local ... * Executing "/etc/local.d/00will-stop.stop" ... [ ok ] * Executing "/etc/local.d/will-fail.stop" ... mount: can't find foo in /etc/fstab * Execution of "/etc/local.d/will-fail.stop" failed. [ !! ] * Starting local ... * Executing "/etc/local.d/00will-start.start" ... [ ok ] * Executing "/etc/local.d/01 test.start" ... [ ok ] * Executing "/etc/local.d/will-fail2.start" ... mount: can't find bar in /etc/fstab * Execution of "/etc/local.d/will-fail2.start" failed. [ !! ] * Executing "/etc/local.d/will-fail.start" ... mount: can't find foo in /etc/fstab * Execution of "/etc/local.d/will-fail.start" failed. [ !! ] X-Gentoo-Bug: 489274 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489274
2014-07-04sysctl.Linux.in: remove -lxc from keywordsKaarle Ritvanen
certain tunables can be set independently for each container X-Gentoo-Bug: 516050 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516050
2014-07-01Schedule removal of the opts variable from service scriptsWilliam Hubbs
2014-06-30sysfs: Do not mount openrc cgroup if it is already mountedWilliam Hubbs
We were not checking to see if /sys/fs/cgroup/openrc was already mounted before we mounted it. This fixes that issue. Thanks to Robin Johnson <robbat2@gentoo.org> for pointing this out.
2014-06-23Make history a separate documentWilliam Hubbs
Move the additional history information from Daniel Robbins' wiki page along with the history from README to a separate file, README.history. X-Gentoo-Bug: 513024 X-Gentoo-Bug-URL: https://bugs.gentoo.org/513024
2014-06-21man/start-stop-daemon.8: correct argument from --nice to --nicelevelWilliam Hubbs
X-Gentoo-Bug: 510648 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=510648
2014-06-20tmpfiles.sh: fix comment processingWilliam Hubbs
If you happened to format a comment with no white space after the '#', it was not being processed. Reported-by: consus@gmx.com X-Gentoo-Bug: 511804 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=511804
2014-06-20SELinux filesystem is at /sys/fs/selinuxSven Vermeulen
The SELinux filesystem has been moved to /sys/fs/selinux for quite some time. We kept supporting /selinux for backwards compatibility, but it's time to move forward on this. X-Gentoo-Bug: 511718 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=511718 Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
2014-06-20sh/tmpfiles.sh: license under 2-clause BSDRobin H. Johnson
As the author of our tmpfiles.sh script, I hereby license it under 2-clause BSD, like the rest of openrc. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2014-06-20librc: filter out container processes on OpenVZ hostWilliam Hubbs
Thanks to info and testing done by Daniel Robbins <drobbins@funtoo.org>, there is now a fix for this. Below is his description of the steps OpenRC needed to use. 1) See if /proc/<pid>/status exists 2) If it does, see if it has a "envID:" field 3) If it does, see if "envID:" is set to "0" 4) If so, then it's one of the host's processes and should be a candidate for the list. Otherwise, it is one of the container's processes and should be ignored. This should fix the bug and allow start-stop-daemon to work properly on OpenVZ hosts. X-Gentoo-Bug: 376817 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=376817
2014-04-09README.busybox: document incompatibility with built-in ip appletWilliam Hubbs
2014-04-03tmpfiles.dev: remove --remove optionAndrew Gregory
For compatibility with systemd. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2014-03-27tmpfiles: add support for --boot optionAndrew Gregory
For compatibility with systemd-tmpfiles. Fixes #17 Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2014-03-27tmpfiles: ignore all files starting with systemd-Andrew Gregory
systemd recently moved creation of /run/nologin to systemd-nologin.conf Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2014-03-14rc.conf: typo fixWilliam Hubbs
2014-03-13conf.d/hwclock: typo fixWilliam Hubbs
2014-03-09rc.conf: document rc_nocolor settingWilliam Hubbs
2014-01-23devfs: explicitly mount /dev/shm with mode=1777Mike Frysinger
The current code relies on the tmpfs mount defaulting to 1777 permissions. If it doesn't, things break badly. This can come up when tmpfs is disabled in the kernel and ramfs is being used instead (the kernel will alias tmpfs to ramfs). The default permissions for ramfs is 0755.
2014-01-23update feature removal scheduleWilliam Hubbs
- Remove the netifrc related items since netifrc is now a separate package. - State that the features we are planning to remove will be removed in version 1.0. - Clarify the last entry; we are refering to start-stop-daemon options.
2014-01-18fstabinfo: fix mount and remountWilliam Hubbs
The mount and remount options should always be processed. They were only being processed if -q was not on the command line. X-Gentoo-Bug: 498206 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=498206
2014-01-18init-Linux.sh: do not mount /run with nosuidWilliam Hubbs
This is so that we will be consistent with the systemd spec forr the /run directory mentioned in this wiki article: http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface/
2014-01-15bootmisc: Remove console directories only if $RC_LIBEXECDIR is writableWilliam Hubbs
X-Gentoo-Bug: 489368 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489368
2014-01-13rc-update: add option to remove a service from all runlevelsBenda Xu
The -a option,which only applies to the del command, is used to remove a service from all runlevels. X-Gentoo-Bug: 497740 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=497740
2014-01-11Merge init-common-post code into BSD init scriptWilliam Hubbs
This code is no longer part of the initialization script for Linux, so we can move it into the init script for *BSD which is the only place it is used.
2014-01-09conf.d/keymaps: Remove the currency and euro symbolsWilliam Hubbs
A comment in this file had the actual currency and euro symbols, which were not utf-8, so I was requested to remove them. X-Gentoo-Bug: 494936 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494936
2014-01-08Add missing documentation for environment variablesWilliam Hubbs
Add documentation for the RC_SERVICE, RC_GOINGDOWN, RC_LIBEXECDIR and RC_NO_UMOUNTS environment variables. X-Gentoo-Bug: 489344 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489344
2014-01-05devfs: add code to mount /devWilliam Hubbs
All Linux systems need /dev to be set up,so add code to devfs to do this. The process devfs follows is below. 1. If static_dev is yes, nothing is done. 2. if /dev is an entry in fstab it is mounted or remounted based on that entry. 3. If /dev is not in fstab, it attempts to mount /dev as a devtmpfs or tmpfs depending on which is defined in the kernel; devtmpfs is preferred. 4. If neither devtmpfs nor tmpfs is defined, it assumes the user wants static /dev and prints a warning. X-Gentoo-Bug: 492694 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=492694
2013-12-29Rename runscript to openrc-runWilliam Hubbs
This was requested by Debian, because the minicom software, which is available on Debian and other distros, has a binary named runscript. We are keeping a backward compatibility symlink for now, but this allows Debian or any other distro to safely remove the symlink. X-Gentoo-Bug: 494220 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
2013-12-13add openrc binary to ignore patternsWilliam Hubbs
2013-12-13runscript: clarify the message wrt schedulingWilliam Hubbs
The message about a service being scheduled to start was confusing to some of our users; I was told this wording is more clear. X-Gentoo-Bug: 493070 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493070
2013-12-12Rename the rc binary to openrcWilliam Hubbs
Debian requested this rename due to the "rc" binary conflicting with the "rc" binary from the plan 9 shell. We also add a deprecation warning to the binary when it is run as rc to encourage users to switch to openrc instead. X-Gentoo-Bug: 493958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493958
2013-12-10tmpfiles.sh: small fixesWilliam Hubbs
Change "sort | uniq" to "sort -u". Also, change `...` to $(...). X-Gentoo-Bug: 493736 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493736
2013-12-08rc.conf: Sync list of network file systems with actual defaultsWilliam Hubbs
I would like to thank Aaron Ten Clay <aarontc@aarontc.com> for pointing this out; this is based on a patch he submitted. X-Gentoo-Bug: 491384 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=491384
2013-12-08bootmisc.in: fix boot orderPetre Rodan
Bootmisc was running before the root file system was remounted rw in some situations. This fixes that issue. X-Gentoo-Bug: 493442 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493442
2013-12-06network.in: skip loopback deviceAndrew Gregory
The loopback interface is supposed to be handled by the loopback service, but sys_interfaces includes it. This causes network to try to start it and means that network provides net even if lo is the only interface configured. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-12-02remove type commandWilliam Hubbs
The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me wrt the fix.
2013-12-01rc-update: make "service already installed" message informationalWilliam Hubbs
This message was being sent to stderr, and it should be sent to stdout since it is informational. This change was requested by zero_chaos.
2013-11-30functions.sh: yesno: (mostly) fix eval logicMike Frysinger
We need to quote the expansion. X-Gentoo-Bug: 475032 X-Gentoo-Bug: https://bugs.gentoo.org/475032 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-10-31Fix the service-level rc_verbose settingWilliam Hubbs
This commit fixes the rc_verbose setting so that it is honored if it is set for an individual service. Thanks to whissi@whissi.de for the original patch; this one is slightly modified to be more posix. X-Gentoo-Bug: 489358 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=489358
2013-10-30Begin port to GNU/kFreeBSDSteven Chamberlain
This is just a minimal port to get Debian up and running; the rest will be done later.
2013-10-28bootmisc: do not run clean_run on VSERVER systemsWilliam Hubbs
X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
2013-10-28loopback: do not run in a prefix or vserverWilliam Hubbs
X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
2013-10-21librc: do not allow "." and ".." as runlevel namesWilliam Hubbs
The rc_runlevel_exists function was attempting to treat "." and ".." as valid runlevels; however, this should not be allowed. X-Gentoo-Bug: 488710 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=488710
2013-10-21Revert "Make einfo routines private"William Hubbs
This reverts commit de88aff0a839844526ae262f8961ec4372fed238. I was advised that splashutils links to libeinfo, so we do have a consumer for this library.
2013-10-18remove redundant sync callsWilliam Hubbs
The localmount and mount-ro scripts were flushing pending disk writes by calling sync twice in succession. This is no longer necessary; see the bug report and blog post for reasons we were still doing this. Reported-by: Patrick Lauer <patrick@gentoo.org> X-Gentoo-Bug: 487382 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487382
2013-10-14Add uml keyword to fsck service.Alexander V Vershilov
Fix relevant an issue mentioned by Toralf Förster. X-Gentoo-Bug: 481096. X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=481096
2013-10-12convert flock() messages to verbose warningsWilliam Hubbs
Convert these messages to warnings that are only displayed if EINFO_VERBOSE is set to yes in the environment. This is based on a suggestion from Patrick Lauer <patrick@gentoo.org>. X-Gentoo-Bug: 487588 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487588
2013-10-08netmount: add -lxc keywordWilliam Hubbs
Netmount should not run on lxc, thanks to Mark van Dijk <funtoo@internecto.net>.