Quantcast
Channel: openSUSE Planet - Global
Viewing all articles
Browse latest Browse all 23298

Lukas Ocilka: YaST Runlevel is dead, long live YaST Services Manager!

$
0
0

Long Story Short

It's a public secret that YaST Runlevel in openSUSE 12.3 is far to be useful. It's caused by switching from SysV to systemd whereas all the UI and internal functionality has been designed for SysV. I was thinking about the possibility to rewrite the current module to use systemd directly, but then I realized that I should rather start a pilot project from scratch: The very first YaST module written completely in Ruby!

New YaST Module

This new YaST module has been called Services Manager (yast2-services-manager) to better reflect what it actually does. You can find its source code here. And you can download the package here. It will additionally need yast2-ruby-bindings package in version 1.0.0 or higher which is available in the same repository. To start the module, just type yast2 services-manager as root or start it from YaST Control Center.

Screenshots

Base dialog of the module. Simply start/stop or enable/disable services ...
 ... or set the default target (used to be called default runlevel) ...
 ... or see the service details

Why in Ruby

All old YaST modules were written in YCP - special language invented just for YaST, but there are other programming languages that can be used now and Ruby is THE programming language used for automatic translation from YCP.

Ruby gives us much more than YCP

  • Developers don't need to learn another language just for YaST
  • There are already many libraries out there
  • We can use several great testing frameworks that already exist
  • And last but not least: It's a very nice and powerful language
I hope you'll like it too :)

Viewing all articles
Browse latest Browse all 23298


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>