Answer the question
In order to leave comments, you need to log in
How to programmatically determine the path to the folder where the service starts from in Linux?
On Debian, I can read a file in /etc/systemd/system/ and take the path from the ExecStart parameter. Perhaps there are other ways?
There are also Linux distributions without systemd and I would like to understand how to get this information there. Where and how is it stored?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question