Posts with the tag systemd
My Raspberry Pi running Arch Linux didn't get the proper time on system startup and here is the solution I came up with to solve this problem:
Create the file
[Unit] Description=Set the time using NTP time servers [Service] Type=simple ExecStart=/usr/sbin/ntpd -s
I.e. deploying a tool or Python app using systemd.
I would recommend setting up the environment variables as well as activating the virtualenv in a Bash script and call that from systemd.
Here is the bash script starting the bottle.py web app after setting up the virtualenv. It's stored in