/[baselayout]/trunk/sbin/rc-services.sh
Gentoo

Log of /trunk/sbin/rc-services.sh

Parent Directory Parent Directory | Revision Log Revision Log



Revision 1821 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 20:44:05 2006 UTC (8 years, 8 months ago) by uberlord
File length: 20787 byte(s)
Diff to previous 1801
Misc quoting fixes. Fixed scheduling restart services a little.

Revision 1801 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 11 13:16:41 2006 UTC (8 years, 8 months ago) by uberlord
File length: 20685 byte(s)
Diff to previous 1800
hopefully stop silly warnings from appearing ever again!

Revision 1800 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 11 12:49:38 2006 UTC (8 years, 8 months ago) by uberlord
File length: 20707 byte(s)
Diff to previous 1799
    runscript.sh now traps interrupt signals and rolls back its status to what
    it was when before it started.

    bonding module now supports space seperated and array variables, #118590.

Revision 1799 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 10 16:15:21 2006 UTC (8 years, 8 months ago) by uberlord
File length: 20637 byte(s)
Diff to previous 1649
    Removed runlevel dependancies from runscript.sh as they're now in rc.

    runscript.sh now has much better locking, #118418.

    We now store services to restart when we end up as inactive from a restart
    or we were stopped with IN_BACKGROUND=true, #112088.

    We no longer stop and start services already running on runlevel change if
    they're in the runlevel we're changing too.

    We can now wait_sevice on services started outside of rc.

    rc-status now reports "Could not locate" instead of "Could not local",
    thanks to Christian Heim.

Revision 1649 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 1 17:30:34 2005 UTC (8 years, 9 months ago) by uberlord
File length: 20894 byte(s)
Diff to previous 1601
Fix ordering for services having a 'before net' dependency

Revision 1601 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 8 10:14:16 2005 UTC (8 years, 10 months ago) by uberlord
File length: 20534 byte(s)
Diff to previous 1599
Greatly simplified trace_dependencies. It's now much faster as a result :)

Revision 1599 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 7 18:14:40 2005 UTC (8 years, 10 months ago) by uberlord
File length: 21244 byte(s)
Diff to previous 1574
    rc-status now warns about broken symbolic links in /etc/runlevels and
    trace_dependencies got a bit of a revamp, attempts to fix #104394


Revision 1574 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 17 18:40:16 2005 UTC (8 years, 11 months ago) by uberlord
File length: 21854 byte(s)
Diff to previous 1567
wpa_supplicant now works on wired interfaces, and can work with
ifplugd and netplug too.


Revision 1567 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 13 16:48:56 2005 UTC (8 years, 11 months ago) by uberlord
File length: 21325 byte(s)
Diff to previous 1519
Fix test_service_state() so it always returns 1 when it's not in that state.

Revision 1519 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 12 16:36:48 2005 UTC (9 years ago) by azarah
File length: 21351 byte(s)
Diff to previous 1505
Lots of syntax and quoting fixes.

Revision 1505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 8 14:49:44 2005 UTC (9 years ago) by uberlord
File length: 21405 byte(s)
Diff to previous 1448
Added ifplugd module, but we prefer netplug by default

Revision 1448 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 31 20:45:55 2005 UTC (9 years ago) by azarah
File length: 21340 byte(s)
Diff to previous 1441
Fix for the 'local starts and stops unneeded' issue when calling /sbin/rc
in some cases.


Revision 1441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 31 09:32:11 2005 UTC (9 years ago) by uberlord
File length: 21258 byte(s)
Diff to previous 1418
service status requests (either by /etc/init.d/foo status or rc-status)
now update the service status by checking daemons and/or pidfiles to check if they are still running or not. To update the status in your own code,
source "${svclib}/sh/rc-daemon.sh" and call
update_service_status "${service}"

Trimmed $Header$ from a few files

Revision 1418 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 18 09:45:13 2005 UTC (9 years, 1 month ago) by uberlord
File length: 21269 byte(s)
Diff to previous 1407
RC_AUTO_INTERFACE defaults to NO - but we still default to DHCP

consoletype is now cached. This has the benefit of being very slightly
faster and you now get coloured text for parallel startup

Parallel startup also does parallel shutdown as well

You're now warned if you're using a deprecated conf.d/net syntax

Revision 1407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 13 10:14:13 2005 UTC (9 years, 1 month ago) by uberlord
File length: 20543 byte(s)
Diff to previous 1379
Parallel startup races should now be fixed

Revision 1379 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 4 22:28:28 2005 UTC (9 years, 1 month ago) by uberlord
File length: 20523 byte(s)
Diff to previous 1377
More anal about RHS quoting

Revision 1377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 4 19:45:36 2005 UTC (9 years, 1 month ago) by azarah
File length: 20509 byte(s)
Diff to previous 1375
Fix my own logic issue in new trace_dependencies().

Revision 1375 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 4 19:42:18 2005 UTC (9 years, 1 month ago) by azarah
File length: 20509 byte(s)
Diff to previous 1374
Whitespace cleanups in new trace_dependencies().

Revision 1374 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 4 19:24:59 2005 UTC (9 years, 1 month ago) by azarah
File length: 20554 byte(s)
Diff to previous 1373
Fix a typo and some logic issues in new trace_dependencies().

Revision 1373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 4 18:49:27 2005 UTC (9 years, 1 month ago) by uberlord
File length: 20363 byte(s)
Diff to previous 1352
trace_dependencies gets a re-write (again) to try and solve the hanging
issues that many people are reporting

Revision 1352 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 26 11:24:38 2005 UTC (9 years, 1 month ago) by uberlord
File length: 20012 byte(s)
Diff to previous 1348
Removed loops from trace_dependencies for a nice speed boost.

Revision 1348 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 26 06:34:06 2005 UTC (9 years, 1 month ago) by uberlord
File length: 20748 byte(s)
Diff to previous 1346
    Removed the parallel depend for init scripts and related functions.
    The RC_PARALLEL_STARTUP works well for all - no need for init scripts to
    state if they parallel or not.


Revision 1346 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 25 19:15:46 2005 UTC (9 years, 1 month ago) by azarah
File length: 21083 byte(s)
Diff to previous 1344
Fix the adding of dependencies to properly add netservices as 'net'.

Revision 1344 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 25 18:55:38 2005 UTC (9 years, 1 month ago) by azarah
File length: 20732 byte(s)
Diff to previous 1342
If we do not have net services, check both boot and current runlevel for
net services in trace_dependencies().  Sort services and make sure they
are unique.


Revision 1342 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 25 11:48:57 2005 UTC (9 years, 1 month ago) by uberlord
File length: 20403 byte(s)
Diff to previous 1334
trace_dependencies no longer clobbers the net service

Revision 1334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 21 23:03:47 2005 UTC (9 years, 2 months ago) by uberlord
File length: 20361 byte(s)
Diff to previous 1330
Fixed some start/stop/restart logic for #99663.

Revision 1330 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 21 20:23:23 2005 UTC (9 years, 2 months ago) by azarah
File length: 20211 byte(s)
Diff to previous 1313
Fix hangs in bootup, bug #99663.

Revision 1313 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 18 07:20:24 2005 UTC (9 years, 2 months ago) by uberlord
File length: 20133 byte(s)
Diff to previous 1267
    Changed wpa-supplicant to wpa_supplicant when reporting that it is not
    installed. Fixes #99381

    Fixed some startup problems caused by a mixture of inactive +
    begin_service/end_service functions.

Revision 1267 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 1 20:40:29 2005 UTC (9 years, 2 months ago) by uberlord
File length: 20329 byte(s)
Diff to previous 1264
   Minor tweaks to all dhcp modules - basically better quoting so that
   the eval  calls work better

   pump can now be backgrounded

   Tweaked the dhcp helpers so that more code is shared

   A few tweaks to runscript.sh and rc-services.sh to avoid races

Revision 1264 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 29 18:26:02 2005 UTC (9 years, 2 months ago) by uberlord
File length: 20292 byte(s)
Diff to previous 1258
wireless.runlevel now works

Revision 1258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 28 11:44:18 2005 UTC (9 years, 2 months ago) by uberlord
File length: 20291 byte(s)
Diff to previous 1248
    wpa_supplicant now respects the background=no option if
    wpa_suppliant>=0.4.0 is installed

    fixed network dependencies some more

    You can now restart a script marked starting/inactive

    Documented the use of the RC_USE_CONFIG_PROFILE variable in conf.d/rc

    udhcpc now removes stale pidfiles


Revision 1248 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 17 18:59:19 2005 UTC (9 years, 3 months ago) by uberlord
File length: 19774 byte(s)
Diff to previous 1189
runscript and rc-service fixes for inactive status

Revision 1189 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 21 11:33:17 2005 UTC (9 years, 4 months ago) by azarah
File length: 19441 byte(s)
Diff to previous 1181
Quiet down valid_i() if /softlevel do not yet exist, try #2.


Revision 1181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 19:59:04 2005 UTC (9 years, 4 months ago) by uberlord
File length: 19415 byte(s)
Diff to previous 1180
Fixed init runscript.sh output when RC_PARALLEL_STARTUP is set

runscript.sh now checks if service was made inactive on start - if so, exit


Revision 1180 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 15:29:51 2005 UTC (9 years, 4 months ago) by uberlord
File length: 19386 byte(s)
Diff to previous 1179
set RC_QUIET_STDOUT when RC_PARALLEL_STARTUP is set


Revision 1179 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 15:23:43 2005 UTC (9 years, 4 months ago) by uberlord
File length: 19287 byte(s)
Diff to previous 1128
Merged Paul Pacheco's parallel startup #69854 and modules update
#55329 patches

If RC_PARALLEL_STARTUP==yes then we no longer output einfo/ebegin
messages as they don't line up on screen correctly - instead we output
service ${myservice} starting/started/stopping/stopped/failed


Revision 1128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 16:21:08 2005 UTC (9 years, 4 months ago) by azarah
File length: 17363 byte(s)
Diff to previous 1127
Quiet down valid_i() if /softlevel do not yet exist.


Revision 1127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 15:55:41 2005 UTC (9 years, 4 months ago) by azarah
File length: 17252 byte(s)
Diff to previous 1126
Really fix trace_dependencies() to handle net.* services properly.


Revision 1126 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 14:33:57 2005 UTC (9 years, 4 months ago) by azarah
File length: 16533 byte(s)
Diff to previous 1064
Fix get_service_index() being off by one.  Fix trace_dependencies() to also
take net into regard if its a net_service.  This fixes two problems, first
shutdown should bring services down that uses net before the net.* services,
and secondly '/etc/init.d/net.eth0 needsme', etc should now work properly.
All changes to sbin/rc-services.sh.


Revision 1064 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 19:14:41 2005 UTC (9 years, 6 months ago) by uberlord
File length: 16217 byte(s)
Diff to previous 1063
fixed bug caused by last commit "service" -> "${service}"


Revision 1063 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 22 15:47:38 2005 UTC (9 years, 6 months ago) by uberlord
File length: 16120 byte(s)
Diff to previous 1060
revamped rc-services.sh for STYLE updates and code rationalisation.


Revision 1060 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 21 14:16:33 2005 UTC (9 years, 6 months ago) by azarah
File length: 19192 byte(s)
Diff to previous 1059
Fix mylevel not being set if valid_iuse(), etc is called from /sbin/rc.


Revision 1059 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 21 10:14:54 2005 UTC (9 years, 6 months ago) by azarah
File length: 19000 byte(s)
Diff to previous 1058
Fix tracing for current service as list_depend_trace() was removed.


Revision 1058 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 20 14:21:27 2005 UTC (9 years, 6 months ago) by azarah
File length: 18556 byte(s)
Diff to previous 1029
Take sort_services function from bug #70009, and fix the removing of a
service from a array properly by using unset.  Use this instead of the
trace_* stuff, and fixup shutdown order.


Revision 1029 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 8 16:04:18 2005 UTC (9 years, 6 months ago) by uberlord
File length: 18948 byte(s)
Diff to previous 1013
rc-services.sh now does a /sbin/depscan.sh -u if we have not got
our deptree loaded

removed net_start/stop function from net.lo, bridge and bonding

net.lo now supports depend() per interface like so
depend_br0() { need net.eth0 net.eth1 }


Revision 1013 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 2 23:02:42 2005 UTC (9 years, 6 months ago) by uberlord
File length: 19042 byte(s)
Diff to previous 947
net_service() now returns 1 for non net-services - fixes bug #83352

rc-daemon.sh now uses requote()


Revision 947 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 10 17:04:03 2005 UTC (9 years, 7 months ago) by uberlord
File length: 19041 byte(s)
Diff to previous 764
net.lo now supports fallback_route - fixes #75676
due to bash limitations, only one fallback route is supported

cleaned up dhcp helper

iproute now appends routes instead of adding them - this allows multiple
default routes

RC_STRICT_NET_CHECKING now supports the none "option" which means
that the net service is always up


Revision 764 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 7 18:46:39 2004 UTC (9 years, 9 months ago) by uberlord
File length: 18943 byte(s)
Diff to previous 760
added service_stopped function to make reading code easier and
trying to avoid race conditions


Revision 760 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 7 01:56:58 2004 UTC (9 years, 9 months ago) by uberlord
File length: 18704 byte(s)
Diff to previous 759
added rc-script status "stopping"
now creates starting stopping and inactive directories in $svcdir


Revision 759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 6 23:34:55 2004 UTC (9 years, 9 months ago) by uberlord
File length: 17895 byte(s)
Diff to previous 654
added rc-script statuses "starting" and "inactive"
dhcpcd, udhcpc and dhclient now support backgrounding - fixes #52975


Revision 654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 31 12:26:32 2004 UTC (9 years, 10 months ago) by azarah
File length: 16568 byte(s)
Diff to previous 560
Add the 'lo' option to RC_NET_STRICT_CHECKING to resolve bug #29225.


Revision 560 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 19 05:39:28 2004 UTC (10 years ago) by vapier
File length: 15641 byte(s)
Diff to previous 541
white space fixes


Revision 541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 06:39:42 2004 UTC (10 years, 1 month ago) by vapier
File length: 15642 byte(s)
Diff to previous 539
fix copyright lines


Revision 539 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 18 20:35:37 2004 UTC (10 years, 1 month ago) by agriffis
File length: 15650 byte(s)
Diff to previous 484
Apply Spock's bootsplash patch from bug 45784.  This moves most of the splash functionality out of baselayout.


Revision 484 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 21 17:09:18 2004 UTC (10 years, 5 months ago) by vapier
File length: 15333 byte(s)
Diff to previous 472
update copyright years


Revision 472 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 26 18:38:45 2004 UTC (10 years, 6 months ago) by azarah
File length: 15381 byte(s)
Diff to previous 469
Small fix to sbin/rc-services.sh related to mtime checking and 'net'
virtual service - it had no mtime generated, so check_mtime() failed
for it ...


Revision 469 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 26 17:29:43 2004 UTC (10 years, 6 months ago) by azarah
File length: 15334 byte(s)
Diff to previous 430
Update to enable checking of mtimes on rc-scripts, and auto running
depscan.sh if needed.  Also try to run depscan.sh when RC_GOT_DEPTREE_INFO
is not set instead of just erroring.


Revision 430 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 26 21:40:25 2003 UTC (10 years, 10 months ago) by azarah
File length: 13258 byte(s)
Diff to previous 429
We did not handle the 'net' dependency properly in valid_iuse() and
valid_iafter().  Fix this in /lib/rcscripts/sh/rc-services.sh, closing
bugs #30327 and #31950.


Revision 429 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 26 20:10:45 2003 UTC (10 years, 10 months ago) by azarah
File length: 13214 byte(s)
Diff to previous 427
Fix a logic error in /lib/rcscripts/sh/rc-services.sh that cause the
get_dep_info() function to skip the last entry in the RC_DEPEND_TREE
array (in my case 'net') to be ignored.


Revision 427 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 26 17:48:23 2003 UTC (10 years, 10 months ago) by azarah
File length: 13214 byte(s)
Diff to previous 406
Do not use depinfo_<scriptname>() functions to set rc_<type> variables, bug #24092


Revision 406 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 12 14:52:51 2003 UTC (11 years, 1 month ago) by azarah
File length: 12605 byte(s)
Diff to previous 399
Add missing 'local x' to filter_environ() (bug #26429)


Revision 399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 4 21:39:17 2003 UTC (11 years, 1 month ago) by azarah
File length: 12594 byte(s)
Diff to previous 393
Last minute fixes


Revision 393 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 31 21:08:24 2003 UTC (11 years, 1 month ago) by azarah
File length: 12497 byte(s)
Diff to previous 390
bug #25398


Revision 390 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 28 19:13:03 2003 UTC (11 years, 1 month ago) by azarah
File length: 12153 byte(s)
Diff to previous 389
fix hardcoded ../boot/.. paths in functions.sh


Revision 389 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 28 01:23:46 2003 UTC (11 years, 1 month ago) by azarah
File length: 12137 byte(s)
Diff to previous 365
adelie fixes, add better logger support


Revision 365 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 21 08:00:55 2003 UTC (11 years, 4 months ago) by azarah
File length: 10789 byte(s)
Diff to previous 364
bugfixes


Revision 364 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 20 19:28:57 2003 UTC (11 years, 4 months ago) by azarah
File length: 10644 byte(s)
Diff to previous 362
bugfix release


Revision 362 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 14 20:30:05 2003 UTC (11 years, 4 months ago) by azarah
File length: 10572 byte(s)
Diff to previous 360
fix net.ppp0 issues for kppp; dependency fixes


Revision 360 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 12 21:23:05 2003 UTC (11 years, 4 months ago) by azarah
File length: 9890 byte(s)
Diff to previous 359
some more fixes


Revision 359 - (view) (download) (as text) (annotate) - [select for diffs]
Added Sun May 11 23:32:47 2003 UTC (11 years, 4 months ago) by azarah
File length: 8995 byte(s)
new release; supporting parallel startup and new dep system with many fixes


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sticky Revision:
(Current path doesn't exist after revision 2255)

  ViewVC Help
Powered by ViewVC 1.1.20