Posts with the tag systemd

Fix Time on Arch Linux Systems (Run ntpd -s every hour using 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 /etc/systemd/system/fix-time.service:

Description=Set the time using NTP time servers

ExecStart=/usr/sbin/ntpd -s


Read on

Start a Python Tool or Web App that uses Virtualenv on system startup using Systemd

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.

Working setup

Here is the bash script starting the web app after setting up the virtualenv. It's stored in /home/coltrims/MaxiGauge/


Read on