Skip to content

Instantly share code, notes, and snippets.

View webmasterjunkie's full-sized avatar

Cris Griffith webmasterjunkie

  • Performance Horizon Group
  • United States
View GitHub Profile
@bramus
bramus / myservice
Created November 11, 2013 11:23
Running a PHP script as a service/daemon using `start-stop-daemon`
#! /bin/sh
# Installation
# - Move this to /etc/init.d/myservice
# - chmod +x this
#
# Starting and stopping
# - Start: `service myservice start` or `/etc/init.d/myservice start`
# - Stop: `service myservice stop` or `/etc/init.d/myservice stop`