this post was submitted on 22 Sep 2024
14 points (100.0% liked)
Linux
5351 readers
161 users here now
A community for everything relating to the linux operating system
Also check out [email protected]
Original icon base courtesy of [email protected] and The GIMP
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What is the best way to have caddy run at boot with env file, without running as root?
Create a user, and then a systemd unit for it, under ~/.config/systemd/user/ with contents like these:
Adjust the paths in the arguments. It will require systemctl daemon-reload for such unit to be available for enabling and starting it...
the default systemd service will run caddy as the caddy user i think
otherwise you can choose any user to run a systemd system service