Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126512 - ctrl-c when starting init.d service breaks deptree
Summary: ctrl-c when starting init.d service breaks deptree
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-17 03:51 UTC by Marko Djukic
Modified: 2006-04-18 17:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Djukic 2006-03-17 03:51:53 UTC
If an init.d service is started and then interrupted by pressing ctrl-c at a certain point, the whole init.d collection is left unusable because /var/lib/init.d/deptree is missing. The error message was:

# /etc/init.d/net.eth0 start
/lib/rcscripts/sh/rc-services.sh: line 22: /var/lib/init.d/deptree: No such file or directory

 * Dependency info is missing!  Please run

 *   # /sbin/depscan.sh

 * to fix this.


Running /sbin/depscan.sh had no effect, machine could not reboot or start any services. This was fixed by having to re-emerge baselayout and rebooting.

I am guessing that at some point the rc scripts update the deptree file, and it is first removed then recreated. Could this be fixed by creating a temporary file then just copying it over once created fully? To not leave the machine in a half-broken state?
Comment 1 SpanKY gentoo-dev 2006-04-18 17:10:04 UTC
you should have just run `depscan.sh -u`

depscan.sh will now ignore CTRL+C/CTRL+Z while booting