Skip to content

Instantly share code, notes, and snippets.

View sodik82's full-sized avatar

Stanislav Miklik sodik82

  • Slovakia
View GitHub Profile
@sodik82
sodik82 / start-stop-example.sh
Last active February 27, 2016 22:48 — forked from alobato/start-stop-example.sh
start-stop-example
#!/bin/sh
set -e
. /lib/lsb/init-functions
# Must be a valid filename
NAME=tesco
PIDFILE=/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/var/lib/jenkins/.nvm/versions/node/v4.2.4/bin/node
DAEMON_OPTS="server.js"