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?
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.