summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit
AgeCommit message (Collapse)Author
2015-12-12sysvinit: Fix build with muslKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-08-30sysvinit: Fix makefile bug found with clangKhem Raj
This is due to specifying .h files on linker cmdline clang driver is picky about it, and its not entirely correct either (From OE-Core rev: de45b5e68faeefe3d68818d456f280b98f397634) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-11sysvinit: allow stack size configuration from rcSScot Salmon
For certain swap/overcommit settings (e.g. when overcommit is disabled on a real-time system), we need to limit the stack size used by initscripts. When the STACK_SIZE environment variable is set (usually in /etc/default/rcS), ulimit the stack size to the value specified. Make the stack size ulimit a soft limit, which allows the user to increase the stack size where required without having to run the respective application as root. Signed-off-by: Scot Salmon <scot.salmon@ni.com> Signed-off-by: Gratian Crisan <gratian.crisan@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Acked-by: Rich Tollerton <rich.tollerton@ni.com> Acked-by: Brad Mouring <brad.mouring@ni.com> Acked-by: Bill Pittman <bill.pittman@ni.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-07-23sysvinit: bootlogd: ensure /var/log/boot is created in volatilesRichard Tollerton
bootlogd does not write to /var/log/boot if it does not exist, so if using the volatiles facility (presumed to mount /var/log under a tmpfs), ensure that /var/log/boot gets created. Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23sysvinit: bootlogd: Don't run savelog if it's not installedRichard Tollerton
bootlogd's default log rotation code on stop requires `savelog`, which is in debianutils, which may not be installed. If it's not installed, don't try to perform the log rotation. That is: in the affected code block, `savelog` is what is responsible for creating "boot.0". When `savelog` doesn't exist, an error message gets printed on bootup to the effect of "mv: can't find boot.0". Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23sysvinit: bootlogd: Honor VERBOSERichard Tollerton
The messages echoed when starting and stopping bootlogd are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled. Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-05sysvinit: fix the bootlogd init script headerRoy Li
fix the bootlogd init script header, to make chkconfig be able to work on bootlogd Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-18sysvinit: unmount the psplash lazyilySaul Wold
There is an race condition where psplash is not quite exited before the unmount occurs causing a umount: /mnt/.psplash: target is busy message to appear, it's ok to lazyily unmount and not get this message [YOCTO #5244] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-11-08bootlogd: create log file if not presentChen Qi
Previously, our system had no boot log even if the bootlogd daemon was started correctly. The root cause is that the log file doesn't exist when starting the bootlogd. Add '-c' option to bootlogd so that it will create the boot log if it doesn't exist. [YOCTO #5273] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-09-14sysvinit: remove unused filesChen Qi
The 'need' and 'provide' files are there for simpleinit compatability, according to the comments in these two files. However, we don't use simpleinit and there's even no simpleinit recipe in OE. Besides, these two files are not installed. This patch removes these two unused files. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-08-26sysvinit: add init.d/bootlogd status command for LSB complianceJackie Huang
Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-27sysvinit: rc: exit psplash correctlyChen Qi
Previously, psplash didn't go away at system startup. The root cause is that rc checks the file '/etc/init.d/xserver-nodm' to determine whether to exit psplash manually. So even if xserver-nodm is not linked into runlevel 3, psplash doesn't exit. This patch fixes this problem by letting the rc script check the file '/etc/rc${runlevel}.d/S??xserver-nodm' to determine whether to exit psplash manually. [YOCTO #3904] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-06sysvinit: add ROOTFS_READ_ONLY variable to rcS-defaultChen Qi
This variable indicates whether the rootfs is intended to be read-only or not. Changing this value from 'no' to 'yes' on a currently running system with read-write rootfs and rebooting will give the user a working system with read-only rootfs. However, it is not suggested to change its value. Normally, if a read-only rootfs is required, we should build an image with 'read-only-rootfs' image feature. [YOCTO #3406] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-11-02hwclock.sh: improve hwclock.sh script to use UTC variableChen Qi
Make UTC variable in /etc/default/rcS has effect on hwclock.sh. This variable declares whether the Hardware Clock is kept in UTC or local time. Default its value to "yes" and change the comment. [YOCTO #3341] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-05-30sysvinit: use new update-alternativesMark Hatle
Also remove postinst and prerm which were not being used. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-03-26Various typoes fixed, all comments or output strings.Robert P. J. Day
Typoes fixed: "enviroment", "editted", "spliting", "scheulder". Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09sysvinit: split inittab into it's own recipeKoen Kooi
Implements the improvements suggested in the original fix for [YOCTO #1131] Signed-off-by: <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-10-14sysvinit: add check for no X11 to disbale psplashSaul Wold
Add a check to the rc script to check if the /etc/init.d/xserver-nodm script exists and is executable and not disable psplash if it is, otherwise disable pspalsh since we do not have X installed. Fixed [BUG #457] Signed-off-by: Saul Wold <Saul.Wold@intel.com>
2010-08-27Major layout change to the packages directoryRichard Purdie
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>