aboutsummaryrefslogtreecommitdiff
path: root/init.d/procfs.in
AgeCommit message (Collapse)Author
2017-12-14procfs: remove the @sysconfdir@ referenceWilliam Hubbs
2017-03-16update dependencies for clock serviceWilliam Hubbs
The clock services had a very long list of "before" dependencies that referred to other services within OpenRC. For ease of maintenance, convert these to "after clock" dependencies in the individual services.
2016-09-28init.d: Clean up some bad ewarn outputDoug Freed
2016-09-12init.d/procfs: typo fixWilliam Hubbs
2016-09-08init.d/procfs: fix binfmt_misc module load warningWilliam Hubbs
This reworks the logic so that the warning about configuring the binfmt_misc module is only displayed if the module actually has to be loaded.
2016-08-19Deprecate automatic loading of modulesWilliam Hubbs
In the hwclock, procfs and sysfs service scripts, we automatically attempt to load the kernel modules we need before we take any action. We shouldn't do this, because there are systems which do not use kernel modules and do not have the kmod package installed. With this change, we continue to load the modules ourselves, but we warn the admin that they need to be added to /etc/conf.d/modules or built into the kernel. In the future, this automatic loading will be dropped. X-Gentoo-Bug: 342313 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=342313
2016-07-31init.d: initial service adjustments for docker supportWilliam Hubbs
Add -docker keyword to the same scripts that have -lxc keyword.
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2015-05-01Disable service scripts for systemd-nspawnMike Gilbert
This adds the -systemd-nspawn keyword to service scripts which are not intended to run in systemd-nspawn containers. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
2015-04-20Add binfmt service to sysinit runlevelWilliam Hubbs
This makes binfmt processing behave like tmpfiles processing which follows the same specification as systemd. This fixes #48. X-Gentoo-Bug: 545162 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545162
2015-04-20procfs: do not force loading of usbcore moduleWilliam Hubbs
It appears that the only reason we were force loading the usbcore module was to facilitate mounting usbfs. Since we no longer mount usbfs, this is no longer necessary. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312
2015-04-20procfs: remove usbfs and usbdevfs supportWilliam Hubbs
The usbfs and usbdevfs file systems have been deprecated since Linux-2.6.32, so we remove the code to automount them. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312
2015-04-19procfs: do not test for the existence of /proc/filesystemsWilliam Hubbs
The test for the existence of /proc/filesystems is redundant since we always return success.
2015-04-17procfs: remove redundant check for OpenVZWilliam Hubbs
The check for OpenVZ is not necessary since the procfs service already will not run on OpenVZ due to the keywords setting.
2015-04-14Move SELinux mount to sysfs serviceWilliam Hubbs
The selinux file system is mounted under /sys, so move the code for it to the appropriate service. X-Gentoo-Bug: 546290 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546290
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>
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-02-23Fix shebangs in services to point to the correct location of runscriptAndrew Gregory
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>
2013-02-16do not use SYSCONFDIR for binfmt.dAndrew Gregory
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>
2012-07-26Bring Back prefix supportWilliam Hubbs
We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
2012-04-16init.d/procfs: posix compatibility fixSergei Trofimovich
I've noticed in at boot: # /etc/init.d/procfs restart procfs | * WARNING: you are stopping a boot service procfs |[: 308: unexpected operator Which calls $ /bin/dash -c '[ "$RC_SYS" == "OPENVZ" ] && echo "ovz" || echo "nope"' [: 1: unexpected operator nope Fixed by using '='. X-Gentoo-Bug: 412237 x-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=412237
2012-02-21Remove prefix supportWilliam Hubbs
I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
2012-02-16Enable binfmt_misc for openvz containersWilliam Hubbs
Reported-by: Daniel Robbins <drobbins@funtoo.org> X-Gentoo-Bug: 401875 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401875
2012-02-16Replace hard coded reference to /etc with @SYSCONFDIR@William Hubbs
I found a reference to "/etc" in the procfs script. This changes that reference to @SYSCONFDIR@.
2011-09-18procfs: simplify the binfmt_misc mount checkMike Frysinger
Replace the `mountinfo` exec with a file test of the register file which we rely on later anyways. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18procfs: drop nfsd mountingMike Frysinger
The dedicated nfs init.d script takes care of mounting this when necessary, and we want it there since mounting it isn't terribly useful if you can't actually start up the nfs daemons (which the nfs-utils package provides). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18procfs: load config files from binfmt.d into /proc/sys/fs/binfmt_misc/registerMike Frysinger
This is a KISS version. Let's see where we go from here in terms of complexity. Maybe nowhere! X-Gentoo-Bug: 382723 X-Gentoo-Bug-URL: https://bugs.gentoo.org/382723 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-04-17Check for /sys/module/usbcore before modprobe usbcoreAnthony G. Basile
The use of /proc/bus/usb to mount usbfs has been deprecated, but the option is still available in the kernel. The new approach is to use /sys. We should not modprobe usbcore if either /proc/bus/usb or /sys/module/usbcore exist. X-Gentoo-Bug: 363551 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363551 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2010-01-08random spelling fixesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-04Add support for Linux Containers, fixes #202.Roy Marples
Patch by bug reporter.
2009-07-01We should use -feature instead of nofeature.Roy Marples
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
2009-05-11procfs should use modules.Charlie
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-27Style.Roy Marples
2008-10-10sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples
mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version.
2008-04-22Our init scripts normally output context in [ .. ]Roy Marples
2008-03-25Rework our folder structure so that we don't have OS specific dirs, making ↵Roy Marples
it easier to share init and conf files per OS.