Skip to content

Instantly share code, notes, and snippets.

View MateusZitelli's full-sized avatar
👨‍💻
hacking

Mateus Zitelli MateusZitelli

👨‍💻
hacking
  • QA Wolf
View GitHub Profile
@MateusZitelli
MateusZitelli / forever-init.d
Last active August 29, 2015 14:20 — forked from toniher/forever-init.d
Init.d script for Node.js/IO.js servers, with forever and nvm.
#!/bin/bash
### BEGIN INIT INFO
# Provides: YOUR NAME HERE
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop the forever nodejs application. Requires sudo
### END INIT INFO