Use systemd as init with /sbin/init
Some checks failed
Test / test (push) Has been cancelled
Renovate / renovate (push) Has been cancelled

This commit is contained in:
2025-12-25 01:55:07 +00:00
parent 7b0065f75a
commit b96e3a46bf
6 changed files with 9 additions and 86 deletions

View File

@@ -55,11 +55,11 @@ RUN chmod +x /root/vpn-sso.sh
# Copy AnyConnect preferences
COPY .anyconnect_global /opt/cisco/secureclient/vpn/.anyconnect_global
# Copy and install systemd services
COPY rego-vpn-setup.sh /usr/local/bin/rego-vpn-setup.sh
COPY rego-vpn-gui.sh /usr/local/bin/rego-vpn-gui.sh
RUN chmod +x /usr/local/bin/rego-vpn-setup.sh /usr/local/bin/rego-vpn-gui.sh
# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Copy systemd services
COPY rego-vpn.service /etc/systemd/system/rego-vpn.service
COPY cisco-vpnagentd.service /etc/systemd/system/cisco-vpnagentd.service
@@ -67,13 +67,9 @@ COPY cisco-vpnagentd.service /etc/systemd/system/cisco-vpnagentd.service
RUN systemctl enable rego-vpn.service && \
systemctl enable cisco-vpnagentd.service
# Keep old entrypoint as fallback script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
VOLUME [ "/sys/fs/cgroup" ]
EXPOSE 8806
# Use systemd as init
STOPSIGNAL SIGRTMIN+3
ENTRYPOINT ["/lib/systemd/systemd"]
CMD ["/sbin/init"]