Implement vaguely upstart-style events in rc scripts