Mageia Bugzilla – Attachment 11130 Details for
Bug 25000
Under mga7 systemd starts SYSV init scripts that require the network before the network comes up.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
init script
file_25000.txt (text/plain), 1.52 KB, created by
Robert Munro
on 2019-06-27 01:52:50 CEST
(
hide
)
Description:
init script
Filename:
MIME Type:
Creator:
Robert Munro
Created:
2019-06-27 01:52:50 CEST
Size:
1.52 KB
patch
obsolete
>#!/bin/sh >RCDLINKS="0,K91 1,K91 2,S11 3,S11 5,S11 6,K91" ># ># This runs a script to test whether or not the network is up. ># ># Commands are: ># ># testnetup start Test whether net is up ># testnetup stop Test whether net is up ># testnetup status Test whether net is up ># >#### BEGIN INIT INFO ># Provides: test-network-up ># Required-Start: $network ># Required-Stop: ># Default-Start: 2 3 5 ># Default-Stop: 0 1 6 ># Description: tests whether or not the network is up >### END INIT INFO > ># chkconfig: 2345 11 91 ># description: tests whether or not the network is up ># > >################################################################################ ># Give Usage Information # >################################################################################ >usage() { > echo "Usage: $0 start|stop|status" > exit 1 >} > >################################################################################ ># E X E C U T I O N B E G I N S H E R E # >################################################################################ >command="$1" > >case "$1" in > > start) > /sbin/test-network-up start > ;; > status) > /sbin/test-network-up status > ;; > stop) > /sbin/test-network-up stop > ;; > *) > > usage > ;; > >esac
#!/bin/sh RCDLINKS="0,K91 1,K91 2,S11 3,S11 5,S11 6,K91" # # This runs a script to test whether or not the network is up. # # Commands are: # # testnetup start Test whether net is up # testnetup stop Test whether net is up # testnetup status Test whether net is up # #### BEGIN INIT INFO # Provides: test-network-up # Required-Start: $network # Required-Stop: # Default-Start: 2 3 5 # Default-Stop: 0 1 6 # Description: tests whether or not the network is up ### END INIT INFO # chkconfig: 2345 11 91 # description: tests whether or not the network is up # ################################################################################ # Give Usage Information # ################################################################################ usage() { echo "Usage: $0 start|stop|status" exit 1 } ################################################################################ # E X E C U T I O N B E G I N S H E R E # ################################################################################ command="$1" case "$1" in start) /sbin/test-network-up start ;; status) /sbin/test-network-up status ;; stop) /sbin/test-network-up stop ;; *) usage ;; esac
View Attachment As Raw
Actions:
View
Attachments on
bug 25000
: 11130 |
11131