Thanks for the information.
On SLES12, Service.Status, Service.Start and other api's will work correctly as long as the service name is maintained as it is.
On Tue, 22 Nov 2016 04:51:58 -0700
"Suresh K Hosamani" <SureshK.Hosamani@microfocus.com> 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@opensuse.org
To contact the owner, e-mail: yast-devel+owner@opensuse.org