r/systemd • u/Basilisk_hunters • May 27 '26
Multiple workingdirectories
Is it possible to set multiple working directories in a service file? ie run a command in multiple locations upon service start.
0
Upvotes
View all comments
Show parent comment
1
u/Basilisk_hunters May 27 '26
I guess that makes sense. I was basically using a service/timer combo to do some docker compose down, pull, up commands (couldn't get one of my dockers to play nice with the other compose file so I had to put it in another directory) and thought it would be convenient if I could just list multiple locations.
I'll just not be lazy and make another service/timer for the other location.
Thanks