Convert "run at startup" script from upstart to systemd for Ubuntu 16
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 [2345]
stop on runlevel [06]
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?