From 66663bd243ff29219b9f0090b6cb02be29b1d059 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 12 Mar 2016 07:30:13 +0100 Subject: Adding container-autostart program. Signed-off-by: Daniel Baumann --- share/config/container.conf.in | 1 + share/scripts/debootstrap | 5 +++++ share/systemd/container-autostart.service | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 share/systemd/container-autostart.service (limited to 'share') diff --git a/share/config/container.conf.in b/share/config/container.conf.in index 7a0d826..5b52c7d 100644 --- a/share/config/container.conf.in +++ b/share/config/container.conf.in @@ -1,6 +1,7 @@ # container-tools: @NAME@ [start] +cnt.autostart=@CNT_AUTOSTART@ bind=@BIND@ boot=@BOOT@ directory=@DIRECTORY@ diff --git a/share/scripts/debootstrap b/share/scripts/debootstrap index 0961fc9..c1699f7 100755 --- a/share/scripts/debootstrap +++ b/share/scripts/debootstrap @@ -45,6 +45,11 @@ Parameters () shift 2 ;; + --cnt.autostart) + # ignore + shift 2 + ;; + -s|--script) # ignore shift 2 diff --git a/share/systemd/container-autostart.service b/share/systemd/container-autostart.service new file mode 100644 index 0000000..1424ce8 --- /dev/null +++ b/share/systemd/container-autostart.service @@ -0,0 +1,15 @@ +[Unit] +Description=container-tools automatic start +After=syslog.target network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/container-autostart +#ExecStop= +Delegate=yes +StandardOutput=syslog +StandardError=syslog + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3