summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* rc-status: improve usage message accuracy and consistencyAndrew Gregory2013-02-25
| | | | | | | This makes it more clear that many of the options are used as an alternative to a runlevel. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* rc-update: improve usage message accuracy and consistencyAndrew Gregory2013-02-25
| | | | | | | The old message did not indicate that the runlevel argument was optional for add and del or that it could be used with show. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* rc: add usage messageAndrew Gregory2013-02-25
| | | | Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* include BINDIR and SBINDIR in the sanitized PATHAndrew Gregory2013-02-23
| | | | Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* Fix shebangs in services to point to the correct location of runscriptAndrew Gregory2013-02-23
| | | | | | | | SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* make BINDIR and SBINDIR available to input filesAndrew Gregory2013-02-23
| | | | | | | | | | | BINDIR and SBINDIR can be set independently of PREFIX and may not be set to PREFIX/bin as scripts currently assume. Note from William Hubbs: This adds @BINDIR@ and @SBINDIR@ macros to the sed commands run to convert *.in files to the executable form. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* add SBINDIR variable to sys.mkAndrew Gregory2013-02-23
| | | | | | | BINDIR was pointing to PREFIX/sbin which was confusing and inconsistent with src/rc/Makefile. Add SBINDIR and redefine BINDIR appropriately. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* build: use pkg-config to find ncurses libraries if it is availableWilliam Hubbs2013-02-23
| | | | | | | | | | | If ncurses was built with the --with-termlib switch enabled, tgoto, tgetent and tgetstr move to libtinfo. Fortunately, ncurses provides a pkg-config file which we can use if pkg-config is installed. If it is not, we still link to -lncurses for now, so pkg-config is not a hard requirement. Reported-by: jan.paesmans@gmail.com X-Gentoo-Bug: 455912 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=455912
* cgroups: major update to cgroups supportWilliam Hubbs2013-02-19
| | | | | | | | | | This reworks cgroups support so we have one variable in rc.conf for each controller instead of each setting. Also we add support for all of the possible cgroup controllers. I would like to thank Alexander Vershilov for his help with testing and reworking this code.
* cgroups: fix shebang line in rc-cgroup.shWilliam Hubbs2013-02-19
|
* Typo FixWilliam Hubbs2013-02-17
| | | | | | Reported-by: vitalyb@telenet.dn.ua X-Gentoo-Bug: 452544 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=452544
* cgroups: remove comment about suspend for cpu_shares settingWilliam Hubbs2013-02-17
|
* do not use SYSCONFDIR for binfmt.dAndrew Gregory2013-02-16
| | | | | | | This makes binfmt.d consistent with tmpfiles.d and systemd which uses hard coded paths for both. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* disable default -prefix services if MKPREFIX = yesAndrew Gregory2013-02-16
| | | | | | | | Certain services were not being enabled by default if PREFIX was set. This appears to have been intended for Gentoo Prefix systems which are indicated by MKPREFIX not PREFIX. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* make init.sh and init-early.sh honor SYSCONFDIRAndrew Gregory2013-02-16
| | | | | | | Fixes hardcoded paths that break when built with SYSCONFDIR set to anything other than /etc/ Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* consolefont: use setfont to save the current fontAndrew Gregory2013-02-16
| | | | | | | | | Using setfont directly to save the font prevents breakage when a distro stores consolefonts in a location other than /usr/share/consolefonts such as Arch which stores them in /usr/share/kbd/consolefonts Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* cgroups: document kernel requirement for cpu controller settingsWilliam Hubbs2013-02-16
|
* bootmisc: Skip cleaning /var/run or tmp directories if they are tmpfsWilliam Hubbs2013-02-16
| | | | | | Reported-by: walter@pratyeka.org X-Gentoo-Bug: 454338 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=454338
* Add module for cgroup processingAlexander Vershilov2013-02-16
| | | | | | sh/rc-cgroup.sh.in: new script to handle cgroup processing sh/rc-cgroup.sh.in: do not use grep or cut (modification by William Hubbs) sh/runscript.sh.in: use the cgroup script
* keymaps: fix the use of loadkeys in the euro fixWilliam Hubbs2013-02-15
| | | | | | | | | | The loadkeys man page states that if you don't pass a filename loadkeys will read from stdin. However, this is not correct, so we now pass "-" as the filename to explicitly request stdin. Reported-by: andi@grois.info X-Gentoo-Bug: 457524 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=457524
* runscript: retry prefix flock if it is interrupted by a signalAlexander Mezin2013-02-15
| | | | | | Reported-by: Pacho Ramos <pacho2@gentoo.org> X-Gentoo-Bug: 434800 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=434800
* devfs: Mount the posix message queue file systemWilliam Hubbs2013-02-14
| | | | | | Reported-by: reuben.m@gmail.com X-Gentoo-Bug: 456998 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=456998
* Rename shutdown_network setting to keep_networkWilliam Hubbs2013-02-11
| | | | | | | | | | | We were telling users that setting shutdown_network=YES would shut down the network interfaces during shutdown, but this was exactly the opposite of what we were doing. The default was YES, which was keeping the interfaces active. This keeps the default behavior, but renames the setting to keep_network which more accurately describes its function, and instructs users to set it to NO if they want the network interfaces to go down.
* oldnet: add support for shutdown_network from newnetWilliam Hubbs2013-02-11
| | | | | | | | | | | | | | This setting, already in use in newnet, allows the user to control whether network interfaces are stopped when the system shuts down. By default, under newnet, they are not, so I am making oldnet have the same default. A side-affect of this is that in the default configuration this fixes bugs like the one below. Reported-by: jerryfleming2006@gmail.com X-Gentoo-Bug: 259183 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=259183
* oldnet: accomodate rkhunter false positiveWilliam Hubbs2013-02-09
| | | | | | | | | | | | | rkhunter thinks OpenRC is a rootkit because of the hidefirstrout variable. This has been renamed to hideFirstroute in order to get past rkhunter. I realize this is not an openrc bug. In this case though I do not have a problem renaming the variable. Reported-by: ago@gentoo.org X-Gentoo-Bug: 339714 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=339714
* sysfs: mount the fusectl file systemWilliam Hubbs2013-02-01
| | | | | | Reported-by: vapier@gentoo.org X-Gentoo-Bug: 453740 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=453740
* remove cruft from /run directoryWilliam Hubbs2013-01-31
| | | | | | | The /run directory is a mount point for a tmpfs and should not contain any files or directories. This cleans out the /run/openrc symlink and any other files which were incorrectly placed in /run. Thanks to Ian Stakenvicius for pointing out this solution.
* rc-functions.sh: add ceph to net fs listMike Frysinger2013-01-16
| | | | | | | X-Gentoo-Bug: 452552 X-Gentoo-Bug-URL: https://bugs.gentoo.org/452552 Reported-by: Tomas Mozes <hydrapolic@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* typo fixWilliam Hubbs2013-01-15
|
* runscript: fix stopping changed service issuesWilliam Hubbs2013-01-15
| | | | | | | | | | | | | If an init script or service was upgraded while it was running and the settings for the pid file, command and process name were changed, it would not be possible to stop the old service. Runscript now saves the values it used to start the service and re-uses them to stop the service. Reported-by: flameeyes@gentoo.org X-Gentoo-Bug: 434032 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=434032
* libeinfo: check for "color" in the terminal nameAndrew Gregory2013-01-04
| | | | Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* Add tools directoryWilliam Hubbs2013-01-02
| | | | | | | | | This directory will contain tools which are not necessary for OpenRC to run, but which some users have found useful. The first of these is deptree2dot, which converts /run/openrc/deptree to a .dot file for use with graphviz. This can assist in finding circular dependencies.
* udhcpc: fix resolv.conf setting for domainWilliam Hubbs2012-12-22
| | | | | | | | | The value that was supposed to be in the domain setting was being added incorrectly to search. Reported-by: bug@mejor.pl X-Gentoo-Bug: 446862 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446862
* Set a default size for /run on LinuxWilliam Hubbs2012-12-22
| | | | | | Reported-by: alpiturchi@gmail.com X-Gentoo-Bug: 447076 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=447076
* ifconfig.sh.Linux.in: fix ipv6 routes and default routeAlexander Tsoy2012-12-21
| | | | | | | | Do not add -net or -host to ipv6 routes or to the default route when using route from net-tools. X-Gentoo-Bug: 442594 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=442594
* net.lo: add ipv6 net and host patternsAlexander Tsoy2012-12-21
| | | | | X-Gentoo-Bug: 442594 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=442594
* net.lo: allow address families to be set on routesMihai Moldovan2012-12-20
| | | | | X-Gentoo-Bug: 447310 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?d=447310
* net/bonding: ensure mode & miimon are handled correctly.Robin H. Johnson2012-12-20
| | | | | | | | | | miimon & mode must be set before other parameters, and then not changed again. Prior commit f671e0a28 per bug #421757 introduced a small logic error. Fixed & refactored to prevent it happening as easily. X-Gentoo-Bug: 447790 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=447790 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.sh.Linux: do not try to remove the /run/openrc symlinkWilliam Hubbs2012-12-19
| | | | | | | | | | | In order to make migration from /lib*/rc/init.d to /run/openrc possible without rebooting, the migration script creates a symlink from /run/openrc to /lib*/rc/init.d. We were trying to remove it on the next reboot, but this is not possible since / is ro when /run is mounted. Reported-by: fturco@fastmail.fm X-Gentoo-Bug: 447678 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=447678
* net.lo: sleep *after* carrier checkMike Frysinger2012-12-18
| | | | | | | | | | For devices that are always connected (e.g. ethernet cards), the current carrier always wastes time by sleeping for 1 second. This is because the code sleeps first, then checks for carrier. Invert the order so that we return quickly for devices already active. For devices which are not yet up, there shouldn't be any real difference. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fsck: simplify skiplist setupMike Frysinger2012-12-18
| | | | | | Use printf rather than a manual for loop. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* localmount: quoting fixesSteve L2012-12-16
| | | | | X-Gentoo-Bug: 446556 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446556
* init-linux: Do not remove the $rc_libexecdir/init.d directoryWilliam Hubbs2012-12-07
| | | | | | Reported-by: toralf.foerster@gmx.de X-Gentoo-Bug: 446342 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446342
* migrate-to-run: do not require a rebootWilliam Hubbs2012-12-06
| | | | | | | The script that migrates the @libexecdir@/rc/init.d directory to /run/openrc should not require a reboot. Reported-by: chainsaw@gentoo.org
* Do not add a prefix to the /run directoryWilliam Hubbs2012-12-03
| | | | | | | | This doesn't affect us on gentoo, but on archlinux, which has done the /usr merge, OpenRC was looking for /run under PREFIX. /run is always at the root level, so it shouldn't have prefix appended to it. Reported-by: udeved@openrc4arch.site40.net
* Typo FixWilliam Hubbs2012-12-03
|
* typo fixesWilliam Hubbs2012-11-30
|
* netmount: make "net" the default network option for nowWilliam Hubbs2012-11-29
| | | | | | | | | | | Currently, we have the net virtual, so we should use it as the default in this instance so that netmount comes up after it thinks the network is up. However, this is technically eroneous, because there is no way to know from the init system that we really have network connectivity. Reported-by: cheepeero@gmx.net X-Gentoo-Bug: 445116 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=445116
* localmount: only skip unmounting /usr if it was premountedWilliam Hubbs2012-11-29
| | | | | | | | | | Add a test when localmount is started to determine if /usr is mounted from inside an initramfs for Linux systems. If it is not, we can unmount it when localmount stops. On *bsd systems, we always unmount /usr if it is separate. Reported-by: ryao@gentoo.org
* migrate-to-run: Remove old RC_SVCDIR after unmounting tmpfsWilliam Hubbs2012-11-25
| | | | | | reporrrrted-by: netfab@gmail.com X-Gentoo-Bug: 443996 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=443996