aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
AgeCommit message (Collapse)Author
2014-10-23Bundle <sys/queue.h> from NetBSDAnthony G. Basile
We are bundling this to allow building on musl-based systems since musl does not include <sys/queue.h>.
2014-07-17rc-status: fix infinite loop when using stacked runlevelsWilliam Hubbs
Remove the recursive call in print_stacked_services which was causing an infinite loop when using stacked runlevels. I would like to thank Doug Freed and Jason Zaman for assisting with tracking this down. X-Gentoo-Bug: 514972 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=514972
2013-09-23style fixesWilliam Hubbs
2013-09-20Fix stacked runlevel supportAlexander V Vershilov
Patch was provided by Max Hacking <max.gentoo.bugzilla@hacking.co.uk> and slightly fixed by Alexander Vershilov <qnikst@gentoo.org> and William Hubbs <williamh@gentoo.org>. Fixes: 1). Rebase to newest OpenRC version. 2). Remove code style fixes. Port to currect code style. 3). Fix rc_runlevel_stack instead of introducing new function. 4). Make get_runlevel_chain a private function. X-Gentoo-Bug: 467368 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=467368
2013-07-19rc-status: fix typoAlexander V Vershilov
X-Gentoo-Bug: 477318 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477318
2013-07-16rc-status: fix -a to show all servicesAlexander V Vershilov
We need to unset rc_svcname so that all of the services are added to the list to display. X-Gentoo-Bug: 409787 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=409787
2013-02-25rc-status: improve usage message accuracy and consistencyAndrew Gregory
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>
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-05-02Add runlevel stacking, #88Roy Marples
This implementation has the limitation that you cannot have a stacked runlevel and service of the same name in a runlevel.
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-24Add missing show levels switch.Roy Marples
2009-04-24rc-status -c now lists services that have crashed.Roy Marples
It returns 0 if there are crashed services, otherwise 1. This it easy to restart crashed services automatically. More for #120.
2009-04-23Don't include hotplugged services in manual.Roy Marples
2009-01-12We now warn about clock skewsRoy Marples
rc-update -u will force a regen of the dep tree rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
2008-12-04Report invalid runlevels.Roy Marples
2008-12-01Actally show hotplugged services.Roy Marples
2008-10-30We should show hotplugged services, needed services and manually started ↵Roy Marples
services in rc-status.
2008-09-18Use the new rc_stringlist_find function.Roy Marples
2008-09-18Clean up some compile warnings.Roy Marples
2008-04-21If we don't have permission to inspect the pidfile, don't report crashed. ↵Roy Marples
Gentoo #218028.
2008-04-17Fix rc-status some more.Roy Marples
2008-04-16Only report unassigned services when there are any, Gentoo #218005.Roy Marples
2008-04-09By default, rc-status now shows the statuses of the services in the current ↵Roy Marples
runlevel and any unassigned non stopped services, #52.
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-23We don't change service here.Roy Marples
2008-03-21euid 0 should always be able to find pids too.Roy Marples
2008-03-21Only test crashed services if we can see pid 1.Roy Marples
2008-03-17We should check for NULL here.Roy Marples
2008-03-16Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples
from queue(3). Refactor code style around the BSD KNF.
2008-02-22Welcome to 2008.Roy Marples
2008-02-11Just use the extern applet var.Roy Marples
2008-02-08rc-status -r now shows the current runlevel name.Roy Marples
2008-02-07Only use hilite if stdout is a ttyRoy Marples
2008-02-01Constantise as much as possible so that it reduces COW usage.Roy Marples
2008-01-22Quiet some more lint warnings.Roy Marples
2008-01-14strip trailing newlinesMike Frysinger
2008-01-11Re-indent to a standard tw of 8.Roy Marples
2008-01-06Set include paths in Makefile instead of .c filesRoy Marples
2008-01-05Add the missing changes from the recent Makefile updatesRoy Marples
2008-01-05Add some .mk stubs to impersonate bsk .mk files to make writing our ↵Roy Marples
Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.