3

systemd has many default values that can be modified by Linux distributions. (By default values, I mean general systemd settings. Not unit specific settings.) How can I see a dump of those values?

For example I am interested to see what DefaultTasksMax is.

  • If you found one of the answers to be correct, please accept it. – Mark Stosberg Oct 16 '17 at 18:04
4

You are looking for systemctl show -all for the global property set or systemctl show $servicename --all for a particular service.

I found the answer by searching man systemctl for first "dump", and then "show", which found the command.

Or to answer your specific question:

$ systemctl show --property=DefaultTasksMax
DefaultTasksMax=18446744073709551615

DefaultTasksMax was added in systemd version 228.

  • systemctl show --property=DefaultTasksMax outputs nothing for me. – adrelanos Dec 4 '16 at 19:36
  • Try sudo systemctl show --all | grep DefaultTasksMax. Also, share what version of systemd you are using. – Mark Stosberg Dec 5 '16 at 15:27
  • No results either. Debian jessie version 215-17+deb8u5. – adrelanos Dec 5 '16 at 16:29
  • 1
    I checked the Changelog. This property was added in systemd version 228, which is why you find no default value. The property doesn't exist on your system. – Mark Stosberg Dec 5 '16 at 20:20
  • This answer is more clean. – Elouan Keryell-Even Oct 16 '17 at 15:00
1

You can find the systemd system instance configurations at,

/etc/systemd/system.conf
/etc/systemd/system.conf.d/*.conf
/run/systemd/system.conf.d/*.conf
/usr/lib/systemd/system.conf.d/*.conf

And the user instance configurations at,

/etc/systemd/user.conf
/etc/systemd/user.conf.d/*.conf
/run/systemd/user.conf.d/*.conf
/usr/lib/systemd/user.conf.d/*.conf

For more information check manpage for systemd-system.conf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.