Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created September 29, 2011 11:17
Show Gist options
  • Save kwilczynski/1250548 to your computer and use it in GitHub Desktop.
Save kwilczynski/1250548 to your computer and use it in GitHub Desktop.
Lucid upstart job that will emit fake event ...
description "Container Upstart"
start on startup
script
rm -rf /var/run/*.pid
rm -rf /var/run/network/*
/sbin/initctl emit stopped JOB=udevtrigger --no-wait
/sbin/initctl emit started JOB=udev --no-wait
/sbin/initctl emit -n net-device-up IFACE=lo LOGICAL=lo ADDRFAM=inet METHOD=loopback --no-wait
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment