Skip to content

Instantly share code, notes, and snippets.

View zachseifts's full-sized avatar
🏠
Working from home

Zach Seifts zachseifts

🏠
Working from home
  • Appalachian State University
  • Boone, NC
View GitHub Profile
@zachseifts
zachseifts / node_debian_init.sh
Created April 23, 2011 19:10 — forked from peterhost/node_debian_init.sh
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
; from http://www.lullabot.com/articles/wysiwyg-feature
; DRUPAL VERSION
core = 6.x
; CORE MODULES
projects[] = drupal
projects[views][subdir] = "contrib"
; FILE HANDLING
projects[imagecache][subdir] = "contrib"
; Basic Drush Make file
; See the Drush Make prject page for info:
; http://drupal.org/project/drush_make
; This file by Brock Boland [brock@brockboland.com]
;
; This file is also on GitHub:
; http://gist.github.com/404528
; Core version
; ------------
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db