- 27 Aug, 2011 4 commits
-
-
Sébastien Luttringer authored
rc.d can now take --started, --stopped, --auto, --noauto as option which help user to filter list of daemon for all actions As a corollary list command can now take a list of dameon to display All kind of arguments can be mixed to obtain the proper output. zsh and bash completion are updated Note: Output of help command exit 0 and is no more printed on stderr Signed-off-by:
Sebastien Luttringer <seblu@seblu.net>
-
Sébastien Luttringer authored
Signed-off-by:
Sebastien Luttringer <seblu@seblu.net>
-
Sébastien Luttringer authored
Signed-off-by:
Sebastien Luttringer <seblu@seblu.net>
-
Sébastien Luttringer authored
Daemon running in background should let error output to be printed. Standart output is still hided to have a correct printing in default cases. This will help to detect error in daemon runned in background. This will also remove have_daemon call which is already called in start_daemon. Signed-off-by:
Sebastien Luttringer <seblu@seblu.net>
-
- 25 Aug, 2011 2 commits
-
-
Tom Gundersen authored
init is now included in mkinitcpio's busybox, so we don't need to copy it. This might break compat with dracut, but it can be worked around very simply in case anyone wants to use dracut with Arch, so we don't care. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
Tom Gundersen authored
Tell the /run/initramfs/shutdown what action to preform. Still no kexec support though. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 20 Aug, 2011 2 commits
-
-
Tom Gundersen authored
Signed-off-by:
Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
Tom Gundersen authored
Suggested-by:
Karol B?a?ewicz <karol.blazewicz@gmail.com> Suggested-by:
Eric Blanger <snowmaniscool@gmail.com> Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 19 Aug, 2011 3 commits
-
-
Dave Reisner authored
A script marked a-x will be reported as missing, when in fact it's only non-executable. Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Dave Reisner authored
This was caused by commit fc9ce464 -- if the user has no interface defined but also has no legacy variables defined, our legacy check fails, and we try to bring up the network using an empty declaration. Add in an additional safeguard of checking sysfs to see that the interface really does exist. Fixes FS#25671 Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Tom Gundersen authored
Reported-by:
Dave Reisner <d@falconindy.com> Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 18 Aug, 2011 1 commit
-
-
Tom Gundersen authored
Fixes #25623. Reported-by:
Segej Puykin <arch@sergej.pp.ru> Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 04 Aug, 2011 3 commits
-
-
Tom Gundersen authored
locale.sh parses rc.conf at runtime and sets the LOCALE accordingly, rather than writing a static file at every boot. This eliminates yet another write to /etc. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
Tom Gundersen authored
We still support a separate /usr if it was somehow mounted by the initrd. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
Tom Gundersen authored
At worst this will give an error message if /usr is not mounted, which is fine as we are warning against this anyway. It will not break boot. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 03 Aug, 2011 1 commit
-
-
Dave Reisner authored
install /dev/null as the new file instead of creating an empty file via a no-op process substitution. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> [tomegun: the commit also adds a similar fix to rc.shutdown] Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 02 Aug, 2011 2 commits
-
-
Tom Gundersen authored
-
Tom Gundersen authored
We check for /usr/lib being present. If it is not, we assume /usr is not yet mounted and warn. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 28 Jul, 2011 1 commit
-
-
Tom Gundersen authored
This keeps the functionality, but disables it by default. Individual scripts/functions can turn it on if they want. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 26 Jul, 2011 3 commits
-
-
Tom Gundersen authored
Assume that a shutdown executable has been created in /run/initramfs by either dracut or mkinitramfs. Setup /run/initramfs to be a new root and pivot into it. Making sure that nothing is using our old root anymore. In particular this means we have to reexec init in the new root and make sure stdio is using the new /dev/console. This is inspired by Harald Hoyers work for systemd as well as Thomas Bächlers deinitramfs. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
Tom Gundersen authored
-
Dave Reisner authored
Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
- 25 Jul, 2011 2 commits
-
-
Sébastien Luttringer authored
This add a /etc/tmpfiles.d inside makefile to automatically create directory with package. /etc is a better place to store user specific tmpfiles config where /usr/lib is better for shipped with package config. As Dave as already included this path inside his arch-tmpfiles, it would be a shame to miss out. Signed-off-by:
Sebastien Luttringer <seblu@seblu.net>
-
Tom Gundersen authored
Make it clear that the message refers to network settings, as some users found this confusing. Signed-off-by:
Tom Gundersen <teg@jklm.no>
-
- 24 Jul, 2011 4 commits
-
-
Dave Reisner authored
Categorize actions as 'create' or 'remove', for finer control. Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Dave Reisner authored
Introduces the checkparams functions, which thoroughly checks arguments for presence, length, and some amount of data validation. Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Tom Gundersen authored
-
Dave Reisner authored
This is the same concept as systemd's tmpfiles handling, slightly simplified to avoid timed re-triggering of file cleaning. Most of our current file cleaning that takes place in rc.single and rc.sysinit is replaced by this, with the exception that we hold onto the /var/lock and /var/run for finer control, since we still check for the possibility of these directories being symlinks and adjust accordingly. Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
- 22 Jul, 2011 1 commit
-
-
Kurt J. Bosch authored
Rationale Avoid printing any start hook status messages above the head line.
-
- 17 Jul, 2011 5 commits
-
-
Kurt J. Bosch authored
Rationale Currently we have to duplicate at least the mount /proc code line into a custom sysinit_start hook to be able to start a splash daemon or something in case no initcpio is used. Moreover we want to make sure nothing can open files read/write on root which would block the read-only remount. So running the sysinit_start hook a bit later appears to be more save.
-
Kurt J. Bosch authored
-
Kurt J. Bosch authored
The rules should be: * Use quotes when literal strings are involved. * Use quotes when ever using a substitution which might produce blanks as a possitional parameter unless word splitting is intended. * Use quotes on the right hand side within '[[ = ]]' unless pattern matching is intended. * Don't use quotes for substitutions where not needed as in assignments.
-
Kurt J. Bosch authored
-
Kurt J. Bosch authored
-
- 12 Jul, 2011 6 commits
-
-
Kurt J. Bosch authored
This avoids trouble because of stale /run/daemons/* files.
-
Kurt J. Bosch authored
Move it into a function to allow clean error detection of all steps performed and also to be able to reuse this in rc.single.
-
Kurt J. Bosch authored
Use correct patterns and get rid of the /dev/null redirection workaround needed when trying to remove '..'.
-
Kurt J. Bosch authored
For checking whether a daemon is started via the DAEMONS array we use ck_autostart() now. So make in_array() generic as the name suggests instead of removing '@'-prefixes from array members behind ones back. Suggested-by:
Dave Reisner <d@falconindy.com>
-
Kurt J. Bosch authored
This is just a bit simpler. in_array() should be fixed to be non daemon specific in a later patch.
-
Kurt J. Bosch authored
Revert to using in_array() instead of is_in_array() which actually doesn't exist.
-