Skip to content

Instantly share code, notes, and snippets.

@vbtechsupport
Created October 23, 2013 12:56
Show Gist options
  • Save vbtechsupport/7118169 to your computer and use it in GitHub Desktop.
Save vbtechsupport/7118169 to your computer and use it in GitHub Desktop.
sample ghost1 init startup script output
service ghost1 status
Status for ghost1:
PM2 Process listing
+------------------------------------------------------------------------------------------------------------+
¦ App Name ¦ id ¦ mode ¦ PID ¦ status ¦ Restarted ¦ Uptime ¦ memory ¦ err logs ¦
+----------+----+---------+-------+--------+-----------+--------+-----------+--------------------------------¦
¦ ghost1 ¦ 0 ¦ cluster ¦ 19706 ¦ online ¦ 1 ¦ 3m ¦ 65.621 MB ¦ /root/.pm2/logs/ghost1-err.log ¦
+------------------------------------------------------------------------------------------------------------+
PM2 PM2 log file path : /root/.pm2/pm2.log (type pm2 logs to see log streaming)
service ghost1 stop
Shutting down ghost1
PM2 Stopping process by id 0
? Processing...PM2 Process stopped
+--------------------------------------------------------------------------------------------------------+
¦ App Name ¦ id ¦ mode ¦ PID ¦ status ¦ Restarted ¦ Uptime ¦ memory ¦ err logs ¦
+----------+----+---------+-----+---------+-----------+--------+--------+--------------------------------¦
¦ ghost1 ¦ 0 ¦ cluster ¦ 0 ¦ stopped ¦ 1 ¦ 0 ¦ 0 B ¦ /root/.pm2/logs/ghost1-err.log ¦
+--------------------------------------------------------------------------------------------------------+
service ghost1 start
Starting ghost1
PM2 Process successfully started
+-----------------------------------------------------------------------------------------------------------+
¦ App Name ¦ id ¦ mode ¦ PID ¦ status ¦ Restarted ¦ Uptime ¦ memory ¦ err logs ¦
+----------+----+---------+-------+--------+-----------+--------+----------+--------------------------------¦
¦ ghost1 ¦ 0 ¦ cluster ¦ 19837 ¦ online ¦ 1 ¦ 0s ¦ 7.688 MB ¦ /root/.pm2/logs/ghost1-err.log ¦
+-----------------------------------------------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment