Skip to content

Instantly share code, notes, and snippets.

@rcmachado
Created November 8, 2012 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcmachado/4041235 to your computer and use it in GitHub Desktop.
Save rcmachado/4041235 to your computer and use it in GitHub Desktop.
Upstart: execute task on shutd own (but before the kill signal)
description "Upstart task: execute this script on shutdown or reboot"
task
# this will execute this script before the upstart send the KILL signals
start on starting rc RUNLEVEL=[06]
exec mktemp --tmpdir=/home/ubuntu test.XXXXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment