Debian Codegraph @

setup/files/misc/start-srv-after-ifup

raw symbols SCIP
1 #!/bin/bash
2 # Steven Shiau <steven _at_ clonezilla org>
3 # License: GPL
4 # This program is used in service /etc/init.d/waitnfs.sh to start some services in /etc/network/if-up.d/ in Ubuntu dapper or later, since in DRBL client, we won't run serivce networking to start network. This will result in no service located in /etc/network/if-up.d/ will be start, especially the must - mountnfs in DRBL.
5
6 services_chklist="mountnfs ntpdate ethtool openssh-server postfix"
7 # We have to export ADDRFAM as inet so that /etc/network/if-up.d/mountnfs will run normally. Ref: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673936
8 export ADDRFAM=inet
9
10 for srv in $services_chklist; do
11 if [ -e "/etc/network/if-up.d/$srv" ]; then
12 echo -n "Starting service $srv in background... "
13 /etc/network/if-up.d/$srv &
14 echo "done!"
15 fi
16 done