Skip to content

Instantly share code, notes, and snippets.

View neurocis's full-sized avatar
🎯
Building the new PIGGY wallet.

Leigh Phillips neurocis

🎯
Building the new PIGGY wallet.
View GitHub Profile
@neurocis
neurocis / nodejs_app_forever_init.sh
Last active August 29, 2015 14:10
init base script for *nix distributions to start, stop restart a daemon-ized nodejs app in forever running under a specific user / account.
#!/bin/bash
#
# An init.d script for running a Node.js process as a service using Forever as
# the process monitor. For more configuration options associated with Forever,
# see: https://github.com/nodejitsu/forever
#
# This was written for Debian distributions such as Ubuntu, but should still
# work on RedHat, Fedora, or other RPM-based distributions, since none of the
# built-in service functions are used. So information is provided for both.
#