Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
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  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.×