Apache always starts as root, then switches to another non-root account. It has to in order to bind to port 80.
(Sorry I don't have an answer to the original question about Monit) On Tue, Sep 15, 2009 at 8:58 AM, Eric Pailleau <[email protected]> wrote: > Amit Gupta 15 a écrit : >> >> Hi All, >> I have installed monit in our environment from a user X. And I want to >> monitor Apache and restart the Apache, if there is no response. Apache is >> running from root. > > Are you sure Apache allow root start ???? > > Even yes, it is not a good idea for obvious security reason. > > Rather use a " /bin/su - USER_X -c ..." to start Apache under USER_X user. > > regards > > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general > -- Bill Kocik http://bkocik.net -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
