Skip to content

pastash service

Lorenzo Mangani edited this page Sep 7, 2017 · 18 revisions

paStash Service

In order to run paStash as a service using forever, follow this guide:

Install forever:

sudo npm install -g forever

Start Service

forever start ./bin/pastash --config_file=/path/to/pastash.conf

Forever restarts your app when it crashes or stops for some reason. To restrict restarts to 5 you could use:

forever -m5 ./bin/pastash --config_file=/path/to/pastash.conf

Manage Services:

forever list

Note the integer in the brackets and use it as following to stop a process:

forever stop 0

Restarting a running process goes:

forever restart 0
Clone this wiki locally