2

It says "This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago."

How can systemd run a command as root before launching a service as a different user?

However, I found useful-to-me information on running commands as root before starting a service running as a less-privileed user.

The OP wanted to create directories for subversion, and finds out about systemd tmpfiles.

But I found out about "ExecStartPre=+" which solved by usecase of firewall adjustment as root before launcing a service.

1 Answer 1

1

In such case please upvote the content. The close vote at that point is not important as the question was answered, and as it's upvoted it will never be erased by the roomba bot of StackExchange.

To sum it up; the question will stay on the site for historical reason as it defied the deletion's rules.

The roomba bot info there; How does deleting work? What can cause a post to be deleted, and what does that actually mean? What are the criteria for deletion?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .