ClearFoundation Tracker - ClearOS
View Issue Details
0000922ClearOSclearos-frameworkpublic2013-01-08 07:272013-01-29 13:10
bchambers 
user2 
normalmajoralways
closedunable to reproduce 
6.3.0 Updates 
 
0000922: Webconfig cannot be stopped or restarted
Permissions on /var/run/webconfig are:

drwx--x---. 2 root webconfig 4096 Jan 8 09:19 webconfig

Webconfig cannot write it's pid file to this directory, so the init script fails to stop or restart the daemon.
No tags attached.
Issue History
2013-01-08 07:27bchambersNew Issue
2013-01-08 07:46user2Statusnew => acknowledged
2013-01-08 07:48user2Note Added: 0000626
2013-01-08 08:11bchambersNote Added: 0000627
2013-01-08 10:02bchambersResolutionopen => unable to reproduce
2013-01-29 13:10user2Note Added: 0000653
2013-01-29 13:10user2Statusacknowledged => resolved
2013-01-29 13:10user2Assigned To => user2
2013-01-29 13:10user2Statusresolved => closed

Notes
(0000626)
user2   
2013-01-08 07:48   
Those are weird permissions, but identical to those used by httpd. I can't duplicate the problem -- it looks like the PID file is written as root before permissions are dropped back to webconfig (?)
(0000627)
bchambers   
2013-01-08 08:11   
Hmm...weird thing is, I set permissions back to original, and everything works OK...However, I'm 100% sure this was broken for some reason...here is the session log:

[root@chambers ~]# ps afxw | grep webconfig
25092 pts/0 S+ 0:00 \_ grep webconfig
24820 ? Ss 0:00 /usr/sbin/webconfig
24822 ? S 0:00 \_ /usr/sbin/webconfig
24823 ? S 0:00 \_ /usr/sbin/webconfig
24824 ? S 0:00 \_ /usr/sbin/webconfig
[root@chambers ~]# ls /var/run/webconfig/webconfig.pid
ls: cannot access /var/run/webconfig/webconfig.pid: No such file or directory
[root@chambers ~]# vi /etc/rc.d/init.d/webconfig
[root@chambers ~]# /etc/rc.d/init.d/webconfig stop
Stopping webconfig: [FAILED]
[root@chambers ~]# ls /var/run/webconfig/webconfig.pid
ls: cannot access /var/run/webconfig/webconfig.pid: No such file or directory
[root@chambers ~]# ls -l /var/run/ | grep webconfig
drwx--x---. 2 root webconfig 4096 Jan 8 09:19 webconfig
[root@chambers ~]# chmod 770 /var/run/webconfig
[root@chambers ~]# ls -l /var/run/ | grep webconfig
drwxrwx---. 2 root webconfig 4096 Jan 8 09:19 webconfig
[root@chambers ~]# ps afxw | grep webconfig
25092 pts/0 S+ 0:00 \_ grep webconfig
24820 ? Ss 0:00 /usr/sbin/webconfig
24822 ? S 0:00 \_ /usr/sbin/webconfig
24823 ? S 0:00 \_ /usr/sbin/webconfig
24824 ? S 0:00 \_ /usr/sbin/webconfig
[root@chambers ~]# kill 24820
[root@chambers ~]# ps afxw | grep webconfig
25094 pts/0 S+ 0:00 \_ grep webconfig
[root@chambers ~]# /etc/rc.d/init.d/webconfig start
Starting webconfig: [ OK ]
[root@chambers ~]# ls /var/run/webconfig/
webconfig.pid
[root@chambers ~]# ls /var/run/webconfig/webconfig.pid
/var/run/webconfig/webconfig.pid
[root@chambers ~]# /etc/rc.d/init.d/webconfig stop
Stopping webconfig: [ OK ]

Mark as not reproducible for now, I guess.
(0000653)
user2   
2013-01-29 13:10   
Closing for now. Please re-open if issue re-appears.