#systemd #Debian

J'ai bien un "After=network.target" mais, malgré ça, un service démarre parfois avant que la directive "up" dans /etc/network/interfaces soit exécutée (et donc le service échoue). Est-ce normal, docteur ?

Bon, apparemment, la seule solution qui marche, c'est la chloraquine. Non, je rigole, la seule qui a marché pour moi, c'est :

ExecStartPre=/bin/sh -c 'until ip addr show | grep 2001:X:Y::Z; do sleep 1; done;'

#systemd

@bortzmeyer As-tu essayé network-online.target au lieu de network.target ? (Wants et After)

Follow

@bortzmeyer (ça peut ne pas marcher selon ce que tu as comme manager pour ton réseau)

Sign in to participate in the conversation
Mastodon

mastodon.immae.eu is one server in the network