Remove the manual start of network interfaces

If glean is run at a runlevel before default then adding interfaces to
the default runlevel will be properly calculated at the default
runlevel's start.  This means we can get rid of the manual start glean
was doing (and causing a 1 min delay every boot).

Change-Id: I0844a961e719972c5d66e1cc8d36a56d25d6a175
This commit is contained in:
Matthew Thode 2016-02-05 01:43:05 -06:00
parent 43909aec20
commit f700d4bcda
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
3 changed files with 2 additions and 7 deletions

View File

@ -10,6 +10,6 @@ start() {
}
depend() {
need root
need root localmount
before net
}

View File

@ -65,8 +65,3 @@ if [ -n "$INTERFACE" ]; then
else
glean
fi
# gentoo needs manual interface start as it doesn't have ifup and the like
if [[ -a /etc/gentoo-release ]]; then
find /etc/init.d/net.* ! -name net.lo -exec {} start \;
fi

View File

@ -95,7 +95,7 @@ def main():
if os.path.exists('/etc/gentoo-release'):
log.info('installing openrc services')
install('glean.openrc', '/etc/init.d/glean')
subprocess.call(['rc-update', 'add', 'glean', 'default'])
subprocess.call(['rc-update', 'add', 'glean', 'boot'])
if os.path.exists('/usr/lib/systemd'):
p = _find_gleansh_path()