telefonicaid / fiware-pep-steelskin

Telefonica's implementation of the FIWARE PEP GE
GNU Affero General Public License v3.0
0 stars 0 forks source link

[IMPROVE] Multiinstance identification of pep instances ps #306

Open cesarjorgemartinez opened 8 years ago

cesarjorgemartinez commented 8 years ago

ps -efa|grep pep pepproxy 8313 1 0 10:08 ? 00:00:00 node /opt/pepProxy/bin/pepProxy pepproxy 8361 1 0 10:08 ? 00:00:00 node /opt/pepProxy/bin/pepProxy

We can use something else STH: ps -efa|grep sth sth 15134 1 3 10:14 ? 00:00:00 /usr/bin/node /opt/sth/bin/sth /opt/sth/conf/sth_sth.conf

dmoranj commented 8 years ago

Please add some more text to the description, I can barely understand what you are talking about. Do you want me to change how PEP instances look in a linux ps command? Is that even possible?

cesarjorgemartinez commented 8 years ago

Yes, we can identify different instances if in the start add the name of the instance, or path to instance configuration. In STH we have: https://github.com/telefonicaid/fiware-sth-comet/blob/master/rpm/SOURCES/etc/init.d/sth su ${COMPONENT_USER} -p -c "${NODE_EXEC} ${COMPONENT_DIR}/bin/sth ${instance} 2>&1 | tee -a ${LOG_DIR}/${NAME}.log & echo \$! > ${STH_PID_FILE}"