-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 12 October 2007, huang mingyou wrote:> hi,all.
> I found that use the ps -ef command to check a service status
> have some error. I test it .
> run puppetd --debug --tags apache2 ,get this message.
> ============> debug: Service[apache2](provider=debian): Executing
''ps -ef''
> debug: Service[apache2](provider=debian): PID is 12062
> ===========> but the apache2 service is not running. and if I run
ps -ef|grep
> apache2 ,may be get this meesage
>
> ===========> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> root 12147 10643 0 17:16 pts/1 00:00:00 grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> root 12169 10643 0 17:16 pts/1 00:00:00 grep apache2
> m9.com2.i:~# ps -ef|grep apache2
> ==============>
> when run puppetd without tags ,all is right.
The usual workaround for this is to use "[a]pache2" as pattern. This
still
matches the binary, but not the grep.
Regards, David
- --
The primary freedom of open source is not the freedom from cost, but the free-
dom to shape software to do what you want. This freedom is /never/ exercised
without cost, but is available /at all/ only by accepting the very different
costs associated with open source, costs not in money, but in time and effort.
- -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHD1dg/Pp1N6Uzh0URAudqAJ9F4hg+TE6qxPsLCwZyPUGmlYGwOgCgh17+
YehvILlOUqmpLVO+r9gXQdw=xD8a
-----END PGP SIGNATURE-----