Create custom_maintenance.conf

Upstart script, executed on shutdown/reboot