diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-19 10:29:13 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-19 10:32:25 +0200 |
commit | 689c038c12b5e86cde50b59233b66566e7755f9d (patch) | |
tree | 005a7957e042f5c5dc7adbe9a799ce60b84304a6 /main | |
parent | a28a23d3f4cc994f8fe6e814b7136d524324ebc4 (diff) | |
download | aports-689c038c12b5e86cde50b59233b66566e7755f9d.tar.bz2 aports-689c038c12b5e86cde50b59233b66566e7755f9d.tar.xz |
main/openrc: dont stop network on shutdown
dont stop the network when switching runlevels, including on shutdown
unless user has explcitly asked to do so with "keep_network=no"
Diffstat (limited to 'main')
-rw-r--r-- | main/openrc/APKBUILD | 8 | ||||
-rw-r--r-- | main/openrc/networking.initd | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD index c4c9362b52..e153f7f663 100644 --- a/main/openrc/APKBUILD +++ b/main/openrc/APKBUILD @@ -2,7 +2,7 @@ pkgname=openrc pkgver=0.21.7 _ver=${pkgver/_git*/} -pkgrel=0 +pkgrel=1 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git" arch="all" @@ -86,7 +86,7 @@ d83df5513f08f09fa9e7353327701bf7 openrc.logrotate 41974f5408fd2e92892f891b58f2e49f keymaps.initd 1737a6fc5376f924230d173f5c7345d0 modules.initd 91439e5e7cbf4bb4c9860e60694da168 modloop.initd -27c22aa4e5cdba499ac9a0b6b9385f7d networking.initd +ead05c56ea93a420dd280eba243b5e5b networking.initd c1ec888202d868710b5749f7b217d1e3 modloop.confd 8a49d8ae0ec6502d0b5ddb568e73138d sysfsconf.initd" sha256sums="522409fb65f4c751e7d01faec54a9446501837abc9e6ee1bea868cb88e4bd603 openrc-0.21.7.tar.gz @@ -104,7 +104,7 @@ dda515d7d906cebcf4137746939f3fdccc7f504fe097ef1dbf429e3e6773a013 hostname.initd 32562d39ade4092df8163c2e8cf0b31eeec06aa5713d343e1c487bfa6d9f7c84 keymaps.initd 77b377575563df74d0e3fede5e6171c6eeec974fe487d0e47cccc5e0ed60ec2d modules.initd e92994dfd5ad6b099eca7627e36dbbe1107c5862b46722c1e1e1b13d10276b60 modloop.initd -66151b5cc199485ddd188528a0f22f081994721f04c15b33df38f41a5d08ea78 networking.initd +d925fd36f0a5b85bc6fddfc5e4bee0ab2198577944c11c065a9ff551d046529a networking.initd a5a0316cd59f5401b1d789bb466c98186201277ba6f014017b14965fcc10c254 modloop.confd 63e7b8c3118612d250f55a711c3e8f0fd328ddd54464e50d0425496cc580beb4 sysfsconf.initd" sha512sums="3b04af849550a7fb7fbc441a666a9562692e5e3fed0c27e92cf5d98345953ddd2e76177646b9ccc29903c097f89ce588cefc82f66f4dddb36a496e05811a926b openrc-0.21.7.tar.gz @@ -122,6 +122,6 @@ b51d95df7b692aaea3e14ed009d99b46b82500d505e2eeecb6a20136cee140aea4a7377a65ccc5c5 584ecbbcecb284527d7616790b6e337ace610e4b3cedf2993eca294bfbef54674aeaee3078b6c17d746a0c48b5a64a813c3534136915947e6f62a6fa206cd3ca keymaps.initd b04058ec630e19de0bafefe06198dc1bff8c8d5d2c89e4660dd83dda8bb82a76cdb1d8661cce88e4a406aa6b4152e17efff52d3eb18ffaec0751d0b6cdbcc48a modules.initd c4de2292b5a175f082f4f80de5145746e4d97481fccb1d22f3a637e46c7c986ad4cd363cb1096312a4e338ce19c2bb4928d819a47e21a149fc36dba3b6dc1727 modloop.initd -9aeba2c5cae539f16185b82c6e6e84c1b044e838749b92e8994172296d86ec3f1c674d62d54db1e08a8191e513ddb0ab3509f50ccae6cb5d7ba5ff5a5b6abb46 networking.initd +55df0ac13dac1f215f0c573ac07b150d31232a5204eccfc8941d5af73f91b4535a85d79b7f6514217038ecbe6bffa28cb83fd8d46fd4c596e07103deb8bc8a57 networking.initd aa702a7da8e6c0e5d8738febaf6b4e4cb021b30ce5c1809b530abf2b36739079446b16fc054740da8d86ed099942cf5deed6597cedb64c058f3def587a8b4689 modloop.confd d76c75c58e6f4b0801edac4e081b725ef3d50a9a8c9bbb5692bf4d0f804af7d383bf71a73d5d03ed348a89741ef0b2427eb6a7cbf5a9b9ff60a240639fa6ec88 sysfsconf.initd" diff --git a/main/openrc/networking.initd b/main/openrc/networking.initd index 998b2079d6..7d653b0149 100644 --- a/main/openrc/networking.initd +++ b/main/openrc/networking.initd @@ -57,6 +57,9 @@ start() { stop() { local iface= + # Don't stop the network at shutdown. + yesno ${keep_network:-YES} && yesno $RC_GOINGDOWN && return 0 + ebegin "Stopping networking" eindent for iface in $(find_running_ifaces); do |