Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / etc / init / | server ip : 172.67.156.115 your ip : 172.69.6.157 H O M E |
Filename | /etc/init/network-interface.conf |
Size | 811 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 22-Mar-2014 00:42 |
Last accessed | 06-Jul-2025 13:41 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# network-interface - configure network device
#
# This service causes network devices to be brought up or down as a result
# of hardware being added or removed, including that which isn't ordinarily
# removable.
description "configure network device"
emits net-device-up
emits net-device-down
emits static-network-up
start on net-device-added
stop on net-device-removed INTERFACE=$INTERFACE
instance $INTERFACE
export INTERFACE
pre-start script
if [ "$INTERFACE" = lo ]; then
# bring this up even if /etc/network/interfaces is broken
ifconfig lo 127.0.0.1 up || true
initctl emit -n net-device-up \
IFACE=lo LOGICAL=lo ADDRFAM=inet METHOD=loopback || true
fi
mkdir -p /run/network
exec ifup --allow auto $INTERFACE
end script
post-stop exec ifdown --force --allow auto $INTERFACE
#
# This service causes network devices to be brought up or down as a result
# of hardware being added or removed, including that which isn't ordinarily
# removable.
description "configure network device"
emits net-device-up
emits net-device-down
emits static-network-up
start on net-device-added
stop on net-device-removed INTERFACE=$INTERFACE
instance $INTERFACE
export INTERFACE
pre-start script
if [ "$INTERFACE" = lo ]; then
# bring this up even if /etc/network/interfaces is broken
ifconfig lo 127.0.0.1 up || true
initctl emit -n net-device-up \
IFACE=lo LOGICAL=lo ADDRFAM=inet METHOD=loopback || true
fi
mkdir -p /run/network
exec ifup --allow auto $INTERFACE
end script
post-stop exec ifdown --force --allow auto $INTERFACE