rc: misc enhancements to improve timing in executed scripts, and to simplify scripts.
commitd933e9304c8aa418cd98d4c045ef56d67a542d7a
authorRay <ray123>
Fri, 12 Nov 2010 17:38:30 +0000 (12 12:38 -0500)
committerFedor <fedork@ubuntu.(none)>
Fri, 12 Nov 2010 17:38:30 +0000 (12 12:38 -0500)
tree35c74f2468ff95c438d9b8f5ac3505cdb8970d96
parent462acf0aab07f42bfd55fb9055fd15ee05f5aa08
rc: misc enhancements to improve timing in executed scripts, and to simplify scripts.

These enhancements are mainly to improve timing in executed scripts - especially
scripts for logging - and to simplify scripts.
1) Wait time on suffixed script files - don't wait if the filename has a '&' in it.
2) killall_tk has better timer granularity. Tenths of second instead of whole second.
3) In exec_service, added ability to know if the service was requested by the GUI
   or by the "service" command-line command.
4) Start/stop logging doesn't restart cron & firewall if it was called from the command
   line. These are restarted so they can pick up parameters from the GUI, in case any
   changed. But none will if is was "service logging restart".
7) Better timer granularity in do_service.
release/src/router/rc/misc.c
release/src/router/rc/services.c