trove/integration/scripts/files/elements/ubuntu-xenial-guest/install.d/22-decrease-networking-timeout

8 lines
300 B
Bash
Executable File

#!/bin/sh
# Fix the issue that 'a start job is running for the raise network' during startup takes too much time.
mkdir -p /etc/systemd/system/networking.service.d/
bash -c 'echo -e "[Service]\nTimeoutStartSec=20sec" > /etc/systemd/system/networking.service.d/timeout.conf'
systemctl daemon-reload