Mailinglist Archive: yast-devel (57 mails)

< Previous Next >
Re: [yast-devel] systemcd service status
On Tue, 22 Nov 2016 04:51:58 -0700
"Suresh K Hosamani" <SureshK.Hosamani@xxxxxxxxxxxxxx> wrote:

Hi,

Like in SLES11, for checking /starting / stopping service
(Service::Status(service), Service::Start and Service::Stop), are
there any similar funtions to check systemd status/stop/ start on
SLES12. Regards, Suresh

Hi Surresh,

I would like to point you to this module:
https://github.com/yast/yast-yast2/blob/master/library/runlevel/src/modules/Service.rb

it have some decend documentation. If you would like to use more OO
approach, you can use methods in systemd which is also well documented:

https://github.com/yast/yast-yast2/blob/master/library/systemd/src/modules/systemd_service.rb


If you have any questions in for this module, ask here again. We try to
answer and also improve documentation.

Josef
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups