Skip to content

Instantly share code, notes, and snippets.

@juliangut
Last active April 6, 2016 15:16
Show Gist options
  • Save juliangut/e0ee557ad7e28a209b5470aa41f3cbe2 to your computer and use it in GitHub Desktop.
Save juliangut/e0ee557ad7e28a209b5470aa41f3cbe2 to your computer and use it in GitHub Desktop.
upstart service template
description "service_description"
author "Julián Gutiérrez - http://juliangut.com"
# Events
start on startup
stop on shutdown
# Automatically Respawn
respawn
# Run the script!
exec your_command >> /var/log/project_folder/service_name.log 2>> /var/log/project_folder/service_name_err.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment