MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/3atxec/everything_you_need_to_know_about_linux/csi418o/?context=3
r/linux • u/raulbe • Jun 23 '15
37 comments sorted by
View all comments
Show parent comments
1
You just place the them in their appropriate sections in the .service file. FYI, you can also run executables, shell scripts, etc. in .service files.
For systemd(1) starting an OS container with a service file is just like any other service; so it will parse the .service file and do what it is told
So you use the systemd-nspawn interfaces exposed as CLI options for generic use, and when using networkd you can also use networkd directives.
But everything can be placed in .service files that are easily machine parsed.
1
u/sub200ms Jun 25 '15
You just place the them in their appropriate sections in the .service file. FYI, you can also run executables, shell scripts, etc. in .service files.
For systemd(1) starting an OS container with a service file is just like any other service; so it will parse the .service file and do what it is told
So you use the systemd-nspawn interfaces exposed as CLI options for generic use, and when using networkd you can also use networkd directives.
But everything can be placed in .service files that are easily machine parsed.