openresty-packaging icon indicating copy to clipboard operation
openresty-packaging copied to clipboard

CentOS 7 init script looks for missing /etc/sysconfig/network

Open robertlabrie opened this issue 8 years ago • 3 comments

So this happened to me today:

Jan 09 19:01:52 openresty.example.com systemd[1]: Starting SYSV: OpenResty is a scalable web platform by extending...
Jan 09 19:01:52 openresty.example.com openresty[628]: /etc/rc.d/init.d/openresty: line 17: /etc/sysconfig/network: No such file or directory

File doesn't exist on CentOS 7

robertlabrie avatar Jan 09 '18 19:01 robertlabrie

@robertlabrie In a fresh install of my CentOS 7 system, that file indeed exists:

[agentzh@min-centos7 ~]$ ls -l /etc/sysconfig/network
-rw-r--r--. 1 root root 22 May 25 22:04 /etc/sysconfig/network

Has something or someone removed that file in your system?

agentzh avatar Jan 09 '18 19:01 agentzh

No, it was a fresh box running in test kitchen. Maybe because it is a docker container I test in?

On Tue, Jan 9, 2018 at 2:50 PM, Yichun Zhang [email protected] wrote:

@robertlabrie https://github.com/robertlabrie In a fresh install of my CentOS 7 installation, that file indeed exists:

[agentzh@min-centos7 ~]$ ls -l /etc/sysconfig/network -rw-r--r--. 1 root root 22 May 25 22:04 /etc/sysconfig/network

Has something or someone removed that file in your system?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openresty/openresty-packaging/issues/28#issuecomment-356394412, or mute the thread https://github.com/notifications/unsubscribe-auth/AEVU5TGFaLVWpq-JClqEfRobU0Uz_CG6ks5tI8MXgaJpZM4RYTa5 .

robertlabrie avatar Jan 09 '18 20:01 robertlabrie

@robertlabrie I installed it from a minimum ISO from CentOS website. Docker containers tend to remove a lot of things. I wouldn't be surprised if they remove this file.

agentzh avatar Jan 09 '18 22:01 agentzh