-
-
Notifications
You must be signed in to change notification settings - Fork 28
pastash service
Lorenzo Mangani edited this page Sep 7, 2017
·
18 revisions
In order to run paStash
as a service using forever, follow this guide:
sudo npm install -g forever
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
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