From 24648a59be6f19e9136cabfc30eebb423531152b Mon Sep 17 00:00:00 2001 From: Mattia Tadini Date: Tue, 14 Jan 2025 16:42:29 +0000 Subject: [PATCH] Add lxc-update-hosts.service --- lxc-update-hosts.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lxc-update-hosts.service diff --git a/lxc-update-hosts.service b/lxc-update-hosts.service new file mode 100644 index 0000000..3741814 --- /dev/null +++ b/lxc-update-hosts.service @@ -0,0 +1,11 @@ +[Unit] +Description=Update /etc/hosts for LXC container +After=lxc-container-start.target + +[Service] +Type=oneshot +ExecStart=/usr/local/lxc-scripts/update-hosts-lxc.sh +RemainAfterExit=yes + +[Install] +WantedBy=default.target \ No newline at end of file