network.service ExecStartPre =(code = exited、status = 1 / FAILURE)

ミハイル・ラクマノフ

質問があります。この場合、ExecStartPre =がFAILUREステータスになるのはなぜですか?すべてが正常に機能しているように見えるためです。誰かが何が起こっているのか説明できますか?

● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2018-04-03 05:04:52 MSK; 3min 54s ago
     Docs: man:interfaces(5)
  Process: 473 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
  Process: 467 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=1/FAILURE)
 Main PID: 473 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 36864)
   CGroup: /system.slice/networking.service

апр 03 05:04:52 debian systemd[1]: Starting Raise network interfaces...
апр 03 05:04:52 debian systemd[1]: Started Raise network interfaces.

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::215:5dff:fe01:303  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:01:XX:XX  txqueuelen 1000  (Ethernet)
        RX packets 9032  bytes 6039361 (5.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6961  bytes 915411 (893.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 114  bytes 34267 (33.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 114  bytes 34267 (33.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
ファイルファイア

これは、このコマンドがステータス1で終了したことを意味します。

/bin/sh -c '[ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle'

次の場合、ステータス1で終了した可能性があります。

  • CONFIGURE_INTERFACES=no設定されています(/ etc / default / network内)。または
  • ifquery --read-environment --list --exclude=lo空を返します。または
  • udevadm settle 出口1

最初の2つは、それ自体は実際にはエラーではありません...udevadm settle実行する必要がある時期を決定するのに役立つことがほとんどです...したがって、ある意味で、status = 1で失敗するExecStartPreは「正常」である可能性があります。 「ある意味で。

私のシステムをチェックすると、ifqueryコマンドが空の出力を返すシステムがあるので、それはおそらくstatus = 1の説明です。

if代わりにを使用することで&&Debianはこれを少し良くすることができたと思います。その場合、条件が真でない場合、コマンドはステータス1ではなく0で終了します。

/bin/sh -c 'if [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ]; then udevadm settle; fi'

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Systemd network.serviceは、ExecStartPreコードで「(code = exited、status = 1 / FAILURE)」を返します

分類Dev

vsftpd won't start: "systemd[1]: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT"

分類Dev

code = exited、status = 1 / FAILUREのため、Systemdサービスは非アクティブのままです

分類Dev

vsftpdが起動しません: "systemd [1]:vsftpd.service:メインプロセスが終了しました、code = exited、status = 2 / INVALIDARGUMENT"

分類Dev

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details

分類Dev

"tsc.exe" exited with code 1

分類Dev

Mysql exited with status 1 and restarted every 24 hours? How to debug?

分類Dev

Linux MintのMongodbエラーmongodb.serviceが発生します:メインプロセスが終了しました、code = exited、status = 62 / n / a

分類Dev

Is there a way to know the status of a node using the network map service?

分類Dev

cordova platform add ios --save exited with exit code 1

分類Dev

Handle response of WorkManager on Network connection Failure

分類Dev

Kerberos installation error, error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1

分類Dev

CloudFormation template fails with error "Service: AmazonEC2; Status Code: 400; Error Code: Unsupported"

分類Dev

EC2 Error using Cloudformation: Service: AmazonEC2; Status Code: 400; Error Code: IncorrectInstanceState

分類Dev

"tsc.exe" exited with code 1 when using ASP.net 4 MVC

分類Dev

GDB [[Inferior 1(process 2710)exited with code06]]奇妙な出力

分類Dev

The exit status code '1' says something went wrong [knp snappy]

分類Dev

expect - how to exit with status code 1 if a command fails?

分類Dev

What is the chance of failure of exception code block

分類Dev

disabling hyper-v in windows 10 causes complete network failure

分類Dev

失敗したsystemctlサービス(code = exited、status = 217 / USER)をデバッグする方法は?

分類Dev

Java connect to SOAP web service using SSL handshake failure

分類Dev

/ auth / failure?message = service_unavailable&strategy = linkedin

分類Dev

Docker run Exited 1 httpd

分類Dev

SSH Service Status

分類Dev

Handling multiple network calls in a single service

分類Dev

a service in ecs fails to find another service within the same network

分類Dev

launching Protractor fails and exited with error code #199"

分類Dev

NSdManager ResolveListener Error Code 3: Failure Already active

Related 関連記事

  1. 1

    Systemd network.serviceは、ExecStartPreコードで「(code = exited、status = 1 / FAILURE)」を返します

  2. 2

    vsftpd won't start: "systemd[1]: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT"

  3. 3

    code = exited、status = 1 / FAILUREのため、Systemdサービスは非アクティブのままです

  4. 4

    vsftpdが起動しません: "systemd [1]:vsftpd.service:メインプロセスが終了しました、code = exited、status = 2 / INVALIDARGUMENT"

  5. 5

    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details

  6. 6

    "tsc.exe" exited with code 1

  7. 7

    Mysql exited with status 1 and restarted every 24 hours? How to debug?

  8. 8

    Linux MintのMongodbエラーmongodb.serviceが発生します:メインプロセスが終了しました、code = exited、status = 62 / n / a

  9. 9

    Is there a way to know the status of a node using the network map service?

  10. 10

    cordova platform add ios --save exited with exit code 1

  11. 11

    Handle response of WorkManager on Network connection Failure

  12. 12

    Kerberos installation error, error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1

  13. 13

    CloudFormation template fails with error "Service: AmazonEC2; Status Code: 400; Error Code: Unsupported"

  14. 14

    EC2 Error using Cloudformation: Service: AmazonEC2; Status Code: 400; Error Code: IncorrectInstanceState

  15. 15

    "tsc.exe" exited with code 1 when using ASP.net 4 MVC

  16. 16

    GDB [[Inferior 1(process 2710)exited with code06]]奇妙な出力

  17. 17

    The exit status code '1' says something went wrong [knp snappy]

  18. 18

    expect - how to exit with status code 1 if a command fails?

  19. 19

    What is the chance of failure of exception code block

  20. 20

    disabling hyper-v in windows 10 causes complete network failure

  21. 21

    失敗したsystemctlサービス(code = exited、status = 217 / USER)をデバッグする方法は?

  22. 22

    Java connect to SOAP web service using SSL handshake failure

  23. 23

    / auth / failure?message = service_unavailable&strategy = linkedin

  24. 24

    Docker run Exited 1 httpd

  25. 25

    SSH Service Status

  26. 26

    Handling multiple network calls in a single service

  27. 27

    a service in ecs fails to find another service within the same network

  28. 28

    launching Protractor fails and exited with error code #199"

  29. 29

    NSdManager ResolveListener Error Code 3: Failure Already active

ホットタグ

アーカイブ