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