updated based on more recent cjdns versions and use of upstart