Followup questions about systemd

I just read the following LinuxConfig article: How to Write a Simple Systemd Service I am unable to post the link, but it can be assembled from the following.

https & linuxconfig dot org/how-to-write-a-simple-systemd-service

Lots of good information here, but I have many follow-up questions, and am unable to find more documentation that is specific to the syntax of the .service document.

For example, we are told to set the “Type” of service to “simple”, but this leads me to wonder: What other types are there?

Or another: we have the options to set a “RuntimeDirectory” and a “WorkingDirectory”. I’d like to learn more about what distinguishes these two directories.

My main question, really, is where to find more information about the properties and values that are covered in the .service document. Unfortunately, the article doesn’t provide any links for followup or a place for questions.

I’ve checked the MAN pages for systemd and the systemd website
https & www dot freedesktop dot org/wiki/Software/systemd/

But I am not seeing anything specific to the possible fields and values on the .service file. Could someone direct me to where I could find documentation on this?

I have extremely basic knowledge about what .service files are, but the systemd manpage took me to https://www.freedesktop.org/wiki/Software/systemd/ and from there I ended up finding https://www.freedesktop.org/software/systemd/man/systemd.service.html, which explains what those options (e.g. Type) are, et cetera. I hope this helps you out.

1 Like

Thank you so much Yuri! That’s exactly what I was looking for.

I remember seeing that alphabetical listing, but I didn’t realize there were both “systemd-” and “systemd.” listings and totally overlooked the “.” set.

@philfrei Great. :slight_smile: I’m glad to help.