You are not logged in.

#1 2018-06-18 18:51:38

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 172

Systemd timer to run python script

I've made a python script which loads some config file from a home directory. I want to run that hourly with systemd timers. However when I created corresponding .service and .timer files, the script run as root - this messed up the config loading. I also don't want to hardwire my home directory as I want the whole thing be a little portable.
Is there a way for systemd to start services as a current user?

Offline

#2 2018-06-18 18:53:59

Haller
Member
Registered: 2018-04-08
Posts: 45

Re: Systemd timer to run python script

Offline

Board footer

Powered by FluxBB