Use systemd as init with /sbin/init
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user