| /[baselayout]/trunk/sbin/runscript.sh |
Parent Directory
|
Revision Log
Add conditionalrestart action, which is the same as restart but the service
is only restarted if it is already started. This means that anything that
whats this only has to use one command instead of two, making them more
efficient.
Create a test file, and if the status is newer than that bail out
after running the service, #154670.
bootmisc now just checks to see if the pid exists for .pid files in
/var/run as we cannot rely on the pidfile name matching the process
name.
update copyrights once like a band-aid
add --help/--debug/--version flags
Fix single user mode, #154961
Don't match init scripts sneakily overriding svc_restart like postgresql
Re-wrote chunks of checkfs and checkroot to tidy things up and more
importantly return 0 when fsck returns 8 (operational error) which allows
us to switch seemlessly from single user to multi user on FreeBSD.
Enforce SOFTLEVEL from the file and not from the environment.
Don't allow services to start or restart shutdown, reboot or single
runlevels.
rc-status now shows services that are scheduled to be started by something.
We now keep $svcdir mounted in a ramdisk all the time as discussed
on gentoo-dev. Dropped the exitcodes folder (useless really) to save
on a fair chunk of space.
Credit to trudefx for finding a way to use == instead of =~.
Replaced a few instances of =~ to == as a result.
halt.sh no longer matches fstype as mounting --bind makes that
redundant. Instead we just avoid unmounting / /dev /dev/pts and /proc.
consolefont now supports UNICODEMAP variable, #144938.
modules now supports config files based on $SOFTLEVEL, #149568
thanks to Vincent Poinot.
Remove portage cruft from functions.sh and support --nocolour
Add ramfs to the don't unmount this fs type list, #151128.
We now use the bash 3.2 =~ semantic, #151108.
Tweak boot time deps a little more
Tweak service dependency a little.
iafter should be treated seperately for now
Update the rc-depend man page with describing the needsme depend a bit and support the legacy RC_NET_STRICT_CHECKING=no option.
Added new C program rc-depend which calculates init script dependencies,
provides and ordering based on the deptree made by our awk scripts.
This solves the big pause seen when running rc or changing runlevels.
RC_STRICT_NET_CHECKING has been punted in favour of a more generic
framework where we check runlevel, running (only if nothing in runlevel)
and then boot runlevel.
Service configs are now dot seperated, so net.eth0 will load conf.d/net
and then conf.d/net.eth0. As such, openvpn.work will also load
conf.d/openvpn and then conf.d/openvpn.work
If we haven't begun a service ourselves, begin it so that other services can wait on us if needed.
Wait for after depends and fix display issues on fbsd
When we schedule a service to start by a service, also schedule it to
start by anything else it provides, #145183.
Snapshot inactive services too when stopping from the background or restarting
Ensure a bit more sanity when restarting services
Return after recalling - duh
Fix bug #147490 and hopefully #148700
Start scheduled services in the correct order, #148011. Plus more BSD fixes. fake service stuff has been punted as we can now add and remove all services
Add text domain messages to rc and runscript. rc now times out and kills services after 60 seconds if it cannot unmount $svcdir from ram
Add some BSD files to /etc, fix Makefile for BSD installing and fix runscript not to lock $svcdir until it can
Initial FreeBSD support in trunk - wooo
More ebuffer fixes
Fix requote for ebuffer. Have to test with s-s-d again
Fix starting scripts in /etc/init.d as ./foo start
Fix locking a bit better an fix dolisting an empty dir
Lock $svcdir when umounting
Document RC_QUIET.
We now buffer e* messages when in parallel so we can display them properly
(ie, init scripts don't mess up the display).
Don't stop deps of inactive services
Fix quoting in valid_i and give better feedback about services not starting/stopping
Remove snapshots correctly
Use dolisting instead of ls for consitency
Reference coldplugged scripts correctly
Fix stopping individual interfaces without bringing down net depends
Should be better to read
Fix errors caused by last commit, backport is_net_up from trunk to 1.12
Fixed some internal net dependencies with >1 active net service
Services can now be scheduled on any inactive services.
Stop inactive dependencies too
Replace grep with [[ $(</proc/foo) =~ reges ]] where appropriate.
drop pointless quoting around var=$()
vlan id's can now be treated as individual interfaces via init scripts
provided they depend on the real interface, #137029
runscript.sh now supports the --verbose flag setting RC_VERBOSE="yes"
When RC_VERBOSE="yes" and RC_PARALLEL_STARTUP="yes" and there is no
exclusive lock (ie, init script not started via rc) then we don't hide
init script output by setting RC_QUIET_STDOUT, #136034.
{start,stop}_volumes moved to rc and halt.sh respectively.
net services are now depended upon more correctly.
Fix "before net" dependencies, #135872 thanks to Oldrich Jedlicka.
pppd.sh now uses passwordfd instead of very nasty regex stuff,
thanks to Oldrich Jedlicka, Alin Nastac and me :), #134337
Only report inactive start once.
Start the trap a little earlier
RC_COLDPLUG is now just a yes|no setting and the service list allowed is now in RC_PLUG_SERVICES. New RC_HOTPLUG setting similar to RC_COLDPLUG is now in place too.
Fix silly globbing
RC_COLDPLUG is now a pure pattern list which defaults to "*"
Allow finer grained RC_COLDPLUG control
RC_COLDPLUG now controls if we add coldplugged services to the boot
runlevel or not, #129331.
Renamed .rcafterinit to .rcboot for better clarity
runscript.sh now stores the fact that it failed to to /dev/.rcsysinit
existing in the directory /dev/.rcafterinit. rc adds services in
/dev/.rcafterinit to the boot list and then rm -f's that directory. This
solves the issue of udev-089 forcing coldplug removal.
runscript.sh now has a --nodeps option so that no depends are checked
when starting and stopping a service.
net.lo and system modules now support resolvconf instead of using our
own internal system.
DHCP and PPP clients no longer have helper scripts. As such they don't
change service status at all. Moved helpers.d/functions back into net.lo
Moved {get,save}_options from functions.sh to rc-services.sh
Removed whole load of crud from hostname init script, fixes #38172 again
and #122794. Also, it's no longer a critical service as defined by rc.
Added net modules for ccwgroup (s390 qeth ethernet) and br2684ctl
(speedtouch usb).
Removed xargs and find from all net scripts as /usr maybe net mounted,
#107260.
Punted the domainname script. Functionality has been in conf.d/net so you
can do this.
ppd module now checks to see if link exists if prefixed with /, #126916.
Change RC_GOT_SVCNAMES back to RC_GOT_SERVICES as it shouldn't have been changed
Allow more than 1 inactive dependant service to start us when it is
started, #125819 thanks to Arnuad Fabre.
$myservice is now deprecated for init scripts.
$SVCNAME should be used instead and is read-only so it cannot be
clobbered.
Several variables in global scope that provided functions rely on,
such as BOOTLEVEL, SOFTLEVEL and svcdir are now read only for init
scripts.
depscan.sh now accepts the --svcdir option so that svcdir can now be
specified as the variable is marked readonly in functions.sh. Splash
programs will have to be updated.
On restarting, don't start twice if we fail to start again.
New variable RC_ULIMIT applies ulimit commands before starting a service.
This should be configured in /etc/conf.d/foo for service foo, but can also
be configured in /etc/conf.d/rc on a global basis.
RC_DAEMON now works in a similar way, instead of RC_DAEMON_foo.
Fixes, #120151.
Dependant services are restarted correctly when the restarted
service is started and not inactive, #120154.
Fix quoting in iwconfig, #119629.
Fix process pid selection in rc-daemon.sh, #119631.
Both of the above thanks to Dominik Buerkle.
init scripts no longer run during the sysinit runlevel, #118419.
Thanks to Greg KH and the Linux Hotplug mailing list for advice.
Give a better error message when no valid DHCP client is installed. Tidy up some runscript logic.
Services should not get stuck in rc anymore, #119242.
Removed sparc interactive fix - will disable in ebuild.
Improved messages returned by runscript.sh a little.
Interfaces names with a dot in them now work.
Renamed restart in $svcdir to scheduled as it makes much more sense.
Changed runscript.sh to store it's services to restart like rc.
Misc quoting fixes. Fixed scheduling restart services a little.
Services that need a service which is inactive at boot are now scheduled
to start when the inactive service starts, #118801.
Exit with the correct code
cp portability fixes
Only return 0 on status calls if we are actually started.
Only wait for the net services that we actually start ourselves.
inactive fixes
Stop a possible deadlock
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.
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.
Ensure that specific configuration is loaded after net.
Save a few CPU cycles by storing add_suffix in variable.
update copyright years
check LC_ALL, then LC_MESSAGES, then LANG dirs for .mo files
Set TEXTDOMAIN and TEXTDOMAINDIR. Install locale into $svclib.
New net scripts depend calls - functions, variables and provide.
This saves having to create 3 seperate functions in each module which means
a saving of around 600-800 bytes per module.
Split apipa out of arping module due to user demand for seperate
functionality.
arping module now works correctly.
runscript sets RC_KILL_CHILDREN=no when restarting a service, otherwise
things like your ssh session get killed.
adsl module supports new rp-pppoe-3.6 ebuild, #102820
Config profile is now changed correctly when doing 'rc foo' and you're in
the default runlevel, #101105
Tweak runscript error output to only show the invalid arg once rather than twice #110558
Lots of syntax and quoting fixes.
Update rc-help.sh to show custom init.d opts #49663 and in general make the output a lot more useful.
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
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
Rationalise if/then/else login in runscript.sh svc_start() and svc_stop()
Fixed failure in runscript.sh to proceed when a non needed dependency
(ie use, after, before) failed to start.
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.
When a service is stopped, the IN_BACKGROUND variable is cleared
before any dependencies are stopped so they are not marked inactive.
The IN_BACKGROUND variable is then restored so the parent script can be
marked inactive.
Fixed some start/stop/restart logic for #99663.
Fix hangs in bootup, bug #99663.
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.
Fixed module depends in net.lo
Remove the 'no net scripts in boot runlevel' restriction as we now
have a hotplug policy setup instead
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
runscript and rc-service fixes for inactive status
etc/{resolv,ntp,yp}.conf now link to /var/lib/net-scripts
report ${myservice} instead of $0 when disallowing net scripts to work in
the boot runlevel - fixes #91534
added #!/bin/bash or #!/bin/sh to modules and helpers so they now get nice syntax highlighting and indenting
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
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
add the -f option to the unset exit
touchup syntax error message
make sure devs dont call exit in init.d scripts #85298
simplify init.d syntax checking and allow users to run /etc/init.d/script status #85892
export the service name for scripts to access #86348
Fixed ifconfig and iproute2 erroring from new lo code - fixes #88006 If /proc/net/netlink does not exist then iproute2 will fail the check_installed function with an appropriate error - Thanks to Jeremy Huddleston for the patch. If /proc/net/packet does not exist then wpa_supplicant will fail check_installed function with an appropriate error Background fixes for net.lo, udhcpc and wpa_supplicant
have the status function of init.d scripts affect the exit value #88319 by Josh Nichols
added a bash_variable to functions.sh which converts the given string
into a variable that bash can use - fixes #88175
net scripts can only launch if we're not in ${BOOTLEVEL}
Fix tracing for current service as list_depend_trace() was removed.
net_service() now returns 1 for non net-services - fixes bug #83352 rc-daemon.sh now uses requote()
It's now possible to configure addresses and routes for the loopback interface if required - however you cannot override our defaults wpa_supplicant and iwconfig now loop for 5 seconds if essid is not returned straight away fixed depends error in run_script
style updates
net dependancies corrected in runscript.sh - fixes #77839
added service_stopped function to make reading code easier and trying to avoid race conditions
added rc-script status "stopping" now creates starting stopping and inactive directories in $svcdir
added rc-script statuses "starting" and "inactive" dhcpcd, udhcpc and dhclient now support backgrounding - fixes #52975
last change to protect people was bogus
make sure people dont run runscript.sh directly
stop using /etc/conf.d/basic
net-scripts/init.d/net.lo
- we remove all added functions when restarting an interface
this relies on the diff command being available
added isdn support via the new ipppd module
net-scripts/conf.d/net.example
- added sample isdn setup
net-scripts/conf.d/wireless.example
- added better descriptions to the _sleep variables
Fixed boolean logic error when testing is_net_up in /sbin/runscript.sh
- fixed bug #70022
Add the 'lo' option to RC_NET_STRICT_CHECKING to resolve bug #29225.
use pam_console_apply on udev and dont run $(id) when we have $EUID
Add v-e-commands (veinfo, vbegin, etc) to sbin/functions.sh that depend on RC_VERBOSE which defaults to no. Add --verbose to args understood by runscript.sh. Use veinfo and friends in net-scripts/init.d/net.lo when loading modules since this information is confusing to users. Always load global "modules" setting in following "modules_iface" since this is a little easier for users to understand.
fix copyright lines
Apply Spock's bootsplash patch from bug 45784. This moves most of the splash functionality out of baselayout.
Fix bug 60719 (request for better error messages from runscript) by allowing errors to show on the screen when they're encountered in wrap_rcscript
Fix bug 60719 (request for better error messages from runscript) by allowing errors to show on the screen when they're encountered in wrap_rcscript
swap words "start" and "stop" in runscript.sh error message
Fix bug 48595: Make sure $(id -u) is zero (root user) when running init scripts to avoid a lot of error messages.
update copyright years
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.
Do not use depinfo_<scriptname>() functions to set rc_<type> variables, bug #24092
More bootsplash fixes, bug #21019 (comment #21).
Bootsplash fixes from Michael Aichler <micha@aichler.net>, (comment #15 and #16 from bug #21019). Bootsplash coded did not play nice with boot profiles, so I fixed that as well. Some other style tweaks.
New release, version 1.4.3.11p2. This add new bootsplash implementation, bug #21019.
adelie fixes, add better logger support
Adelie updates and some other fixes
more fixes
fixes
some more fixes
new release; supporting parallel startup and new dep system with many fixes
updates from Rach
various fixes; moved .c files to src
many fixes/optimizations
type-o fixor
lot of changes; hopeful release of rc-scripts-1.4.3.0
new release
fix some quotes
small fixes and enhancements
fix sourcing of helper scripts
move daemon stuff to rc-daemon.sh
add some flexiblity to net dependency
change license
misc form updates
bugfixes
fix help output
small fixes
speed improvements; order fixes
more fixes
move to /sbin
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.
| ViewVC Help | |
| Powered by ViewVC 1.1.13 |