phusion / baseimage-docker

A minimal Ubuntu base image modified for Docker-friendliness
http://phusion.github.io/baseimage-docker/
MIT License
8.96k stars 1.09k forks source link

cron and sshd appear in /etc/init.d/ and /etc/services (/etc/runit/runsvdir/default/) and cron starts up in both places #592

Closed carukc closed 3 years ago

carukc commented 3 years ago

I am not sure if it's an issue or if this is occuring within baseimage-docker or passenger-customizable (version:1.0.12) but I've just noticed that there are duplicate services in /etc/init.d/ and /etc/services.

For example... cron is enabled by default in passenger-customizable (version:1.0.12) so I see cron in the runit folders and as a result it seems to be started. BUT, I also see cron in /etc/services and it also seems to be started.

Is this normal? Do both need to be running?

Similarly I see ssh in both places but at least ssh in /etc/init.d is not starting automatically.

Have I missed something or is there somehting not quite right in baseimage-docker and passenger-customizable?

Here is what the folders look like:

ll /etc/runit/runsvdir/default/

total 40 drwxr-xr-x 1 root root 4096 Jun 3 14:33 ./ drwxr-xr-x 1 root root 4096 Jun 3 01:30 ../ drwxr-xr-x 1 root root 4096 Jun 3 14:40 cron/ drwxr-xr-x 1 root root 4096 Jun 3 14:40 memcached/ drwxr-xr-x 1 root root 4096 Jun 3 14:40 puma/ drwxr-xr-x 3 root root 4096 Jun 3 14:40 sidekiq/ drwxr-xr-x 1 root root 4096 Jun 3 14:40 sshd/

ll /etc/init.d/

total 116 drwxr-xr-x 1 root root 4096 Jun 3 01:30 ./ drwxr-xr-x 1 root root 4096 Jun 3 14:33 ../ -rwxr-xr-x 1 root root 8181 Apr 13 2020 apache2 -rwxr-xr-x 1 root root 2489 Apr 13 2020 apache-htcacheclean -rwxr-xr-x 1 root root 2964 Dec 6 2019 apport -rwxr-xr-x 1 root root 2401 Aug 21 2018 avahi-daemon -rwxr-xr-x 1 root root 2968 Feb 26 2020 bluetooth -rwxr-xr-x 1 root root 3059 Feb 11 2020 cron -rwxr-xr-x 1 root root 3152 Sep 30 2019 dbus -rwxr-xr-x 1 root root 3033 Sep 8 2020 gdm3 -rwxr-xr-x 1 root root 3809 Jul 28 2019 hwclock.sh -rwxr-xr-x 1 root root 2044 Feb 19 2020 kmod -rwxr-xr-x 1 root root 3481 May 15 2020 memcached -rwxr-xr-x 1 root root 1942 Sep 16 2020 network-manager -rwxr-xr-x 1 root root 4579 Feb 4 2019 nginx -rwxr-xr-x 1 root root 612 Feb 8 2019 pppd-dns -rwxr-xr-x 1 root root 924 Feb 13 2020 procps -rwxr-xr-x 1 root root 469 Oct 15 2020 pulseaudio-enable-autospawn -rwxr-xr-x 1 root root 4417 Oct 15 2019 rsync -rwxr-xr-x 1 root root 2224 Feb 11 2020 saned -rwxr-xr-x 1 root root 3939 May 29 2020 ssh -rwxr-xr-x 1 root root 3497 Dec 25 2018 syslog-ng -rwxr-xr-x 1 root root 6872 Oct 8 2020 udev -rwxr-xr-x 1 root root 2757 Jan 20 2017 x11-common*

I suppose that one possibility is that something that we are installing in our image lists cron as a dependancy and it thus installing it.. but I cannot see this happening with ssh as well.

hmmm... looks like nginx looks ok too

Any thoughts welcome.

Thanks Chris

github-actions[bot] commented 3 years ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 3 years ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.