Created
November 8, 2012 20:12
-
-
Save rcmachado/4041235 to your computer and use it in GitHub Desktop.
Upstart: execute task on shutd own (but before the kill signal)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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