You can use the ps command:
ps -aef | grep "apache\|httpd"
The process id(pid) is the second column usually. If it changes, then
you know the process was restarted.
- Ryan N
On Thu, Aug 19, 2021 at 10:52:04PM -0400, Hasan Baig wrote:
> Yes systemctl stop and start httpd, i verified by checking the web page. How can i check pid?
>
> Regards
> Hasan
>
> > On Aug 19, 2021, at 8:55 AM, Ryan Nowakowski <tubaman@fattuba.com> wrote:
> >
> > I'd verify that the systemctl commands are actually starting and stopping httpd. Does the pid change?
> >
> >> On August 18, 2021 11:04:07 AM CDT, Hasan Baig <hasanbaigg@gmail.com> wrote:
> >> Hi,
> >>
> >> I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands:
> >>
> >> sudo systemctl stop httpd
> >> sudo systemctl start httpd
> >>
> >> and it would reflect the changes smoothly. Since few days back, this strategy has not been work at all. That is, whenever I make any changes in my python code, even simply printing a message in log file, it is not reflected. To reflect the changes every time, I have to reboot the VM. I tried the following things already which did not help at all:
> >>
> >> • Clearing .pyc files
> >> • Restarting/Reloading httpd server
> >> • touch wsgi file
> >> • http is running without caching or proxying (modules have been commented out)
> >>
> >>
> >> All of the above mentioned tries did not appear to work. The changes are only reflected once when the VM is rebooted.
> >>
> >> What do I need to do to make the code changes reflected without rebooting the VM every time? Any clues, help or suggestions are highly appreciated.
> >>
> >> Thanks.
> >>
> >> regards
> >> HB
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/06AA5FDA-FF21-498E-A2B5-AE3AC7252333%40fattuba.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/E8974440-DC64-4082-ACD7-6FB6AFAF04E5%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20210930193559.GF6979%40fattuba.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment