LWN.net Logo

Fast boot

Fast boot

Posted Nov 9, 2012 21:33 UTC (Fri) by boklm (subscriber, #34568)
In reply to: Fast boot by marcH
Parent article: LCE: Systemd two years on

> Scripts are easier to understand than C code because they're using a higher level language which means comparable things are done in code several times smaller.

And domain specific language (such as what systemd uses for its unit files) are also several times smaller and easier to understand than the same things done in a general purpose language like bash.


(Log in to post comments)

Fast boot

Posted Nov 9, 2012 22:50 UTC (Fri) by dlang (✭ supporter ✭, #313) [Link]

If it eliminated the need to learn Bash you might have a point. However it doesn't eliminate the need to learn Bash, so it's 'yet another language to learn'

At that point, you have to question if the new language is valuable enough to have to exist instead of re-using one that's already required.

Fast boot

Posted Nov 9, 2012 23:09 UTC (Fri) by boklm (subscriber, #34568) [Link]

Actually this is not really a new language, just simple configuration files, so there is no new language to learn.

You need to understand what the options mean, but it is usually obvious with the name, and fully documented in man pages.

When looking at a bash init script, you also need to understand what the variables mean. You do this by looking at the code to find what it is doing. In systemd you look at the man page instead. But only the first time, because the same options are used in all unit files so it's easy to remember, while sysv init script always re-implement the same things in a different way so you need to read everything.

Fast boot

Posted Nov 15, 2012 9:47 UTC (Thu) by HelloWorld (guest, #56129) [Link]

There's no new language to learn, systemd's configuration file use the same ini-style format as freedesktop's .desktop files.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds