ClearFoundation Tracker - ClearOS
View Issue Details
0015501ClearOSapp-web-server - Web Serverpublic2017-07-02 14:492017-09-07 21:25
NickH 
user2 
normalminoralways
closedfixed 
7.3.0 
7.4.0 Beta 17.4.0 Beta 1 
0015501: Changing /etc/httpd/conf/httpd.conf crashes syswatch
If you edit etc/httpd/conf/httpd.conf, syswatch crashes.
Add a dummy line to the end of /etc/httpd/conf/httpd.conf (for example a #) then save the file.

It appears that the clearsync daemon detects the change and reloads httpd, but somewhere during this syswatch crashes. The servicewatch daemon restarts syswatch a few minutes later.

From /var/log/secure:
Jul 2 21:35:52 server clearsync: web_server - event triggered - configuration_change_event
Jul 2 21:35:52 server clearsync: web_server - reloading httpd
Jul 2 21:40:01 server servicewatch: sanity checking syswatch
Jul 2 21:40:33 server servicewatch: restarting syswatch
Jul 2 21:40:33 server firewall: Starting firewall...

and from /var/log/messages:
Jul 2 21:35:52 server systemd: syswatch.service: main process exited, code=killed, status=61/RTMIN+27
Jul 2 21:35:52 server syswatch: /etc/rc.d/init.d/syswatch: line 18: [: =: unary operator expected
Jul 2 21:35:52 server syswatch: Stopping syswatch: [FAILED]
Jul 2 21:35:52 server systemd: Unit syswatch.service entered failed state.
Jul 2 21:35:52 server systemd: syswatch.service failed.
No tags attached.
Issue History
2017-07-02 14:49NickHNew Issue
2017-07-04 07:17user2Assigned To => user2
2017-07-04 07:17user2Statusnew => confirmed
2017-07-04 07:20user2Note Added: 0005831
2017-07-04 07:20user2Statusconfirmed => resolved
2017-07-04 07:20user2Fixed in Version => 7.3.1 Updates
2017-07-04 07:20user2Resolutionopen => fixed
2017-08-07 08:06user2Categoryapp-syswatch - System Watch => app-web-server - Web Server
2017-08-14 20:22user2Fixed in Version7.3.1 Updates => 7.4.0 Beta 1
2017-08-14 20:22user2Target Version => 7.4.0 Beta 1
2017-09-07 21:25user2Statusresolved => closed

Notes
(0005831)
user2   
2017-07-04 07:20   
The clearsync trigger was sending a special kill signal to syswatch. It's no longer needed and was removed.