I have a basic upstart script in /etc/init that is used to run a python script upon system startup/reboot.
description "simple python script" start on runlevel  stop on runlevel  respawn env MY_ENVIRONMENT_VAR='/path/to/file.config' chdir /path/to/script/ exec python script.py
How would I achieve the same thing using the systemd service management system in Ubuntu 16.04?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.