I'm trying to get a command to run on boot and wrote an upstart .conf file and put it into /etc/init. It's a brand new EC2 instance and theres was already bunch of .conf files there. My file wasn't working and I found out that upstart is NOT installed.

Why are there files in /etc/init if there's no upstart? Also, what's the preferred way to run a command on boot in ubuntu 16.04?


Upstart was replaced by systemd in April 2015 (v15.04).1 There are still many files flying around for compatibility reasons.

See also:

1. https://en.wikipedia.org/wiki/Systemd

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.