El día viernes, febrero 23, 2024 a las 08:24:58 -0800, Robin Lee Powell via Podman escribió:
On Fri, Feb 23, 2024 at 02:43:48PM +0100, Matthias Apitz wrote:
The Dockerfile which is used to build the container end with:
$ tail -5 suse/Dockerfile EXPOSE 22 8076 3045
ENTRYPOINT /usr/local/bin/start.sh
STOPSIGNAL SIGQUIT
Any ideas what I do wrong?
matthias
Most likely the program running in start.sh is ignoreing the SIGSTOP signal.
The start.sh gets build from Dockerfile in the image:
... RUN echo "/etc/init.d/postgres start" >> /usr/local/bin/start.sh RUN echo "/usr/local/bin/initSunRise.sh" >> /usr/local/bin/start.sh RUN echo "/usr/sbin/sshd -D" >> /usr/local/bin/start.sh RUN chmod 0755 /usr/local/bin/start.sh
EXPOSE 22 8076 3045
ENTRYPOINT /usr/local/bin/start.sh
STOPSIGNAL SIGQUIT
You know, I was pretty confused by your situation until I saw that line. :)
There must be something more magic. This is inside the container: 26ef31df12f6:~ # /etc/init.d/postgres stop Stopping PostgreSQL: ok 26ef31df12f6:~ # ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 /bin/sh -c /usr/local/bin/start.sh 46 ? S 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 180 ? Rs 0:00 sshd: root@pts/0 182 pts/0 Ss 0:00 -bash 217 pts/0 R+ 0:00 ps ax 26ef31df12f6:~ # cat /usr/local/bin/start.sh /etc/init.d/postgres start /usr/local/bin/initSunRise.sh /usr/sbin/sshd -D 26ef31df12f6:~ # kill -9 1 Nothing happens. The proc 1 keeps running. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.