diff options
author | Vitezslav Crhonek <vcrhonek@redhat.com> | 2012-05-02 12:08:18 +0200 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2012-07-23 11:51:21 +0200 |
commit | 2d58a91c4c404a59a49f9534c5b757bdd05b5998 (patch) | |
tree | 09596487bdbb2e9d7284944c0f32c0a6345aa100 /providers/cmpi-service/mof | |
parent | 745cb0cb3fd3d8e1f4acd2900d8ee3a51e1cb5e4 (diff) | |
download | openlmi-providers-2d58a91c4c404a59a49f9534c5b757bdd05b5998.tar.gz openlmi-providers-2d58a91c4c404a59a49f9534c5b757bdd05b5998.tar.xz openlmi-providers-2d58a91c4c404a59a49f9534c5b757bdd05b5998.zip |
Initial commit of cmpi-service provider
Diffstat (limited to 'providers/cmpi-service/mof')
-rw-r--r-- | providers/cmpi-service/mof/Linux_Service.mof | 58 | ||||
-rw-r--r-- | providers/cmpi-service/mof/Linux_Service.registration | 2 |
2 files changed, 60 insertions, 0 deletions
diff --git a/providers/cmpi-service/mof/Linux_Service.mof b/providers/cmpi-service/mof/Linux_Service.mof new file mode 100644 index 0000000..cf59c10 --- /dev/null +++ b/providers/cmpi-service/mof/Linux_Service.mof @@ -0,0 +1,58 @@ +// +// Linux_Service.mof +// +// Copyright (C) 2012 Red Hat, Inc. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +// Red Hat Author(s): Vitezslav Crhonek <vcrhonek@redhat.com> +// + +[ Description("Class representing Linux Service"), + Provider("cmpi:Service") +] +class Linux_Service : CIM_Service +{ + [ Override("StartService"), + Provider("cmpi:Service") ] + uint32 StartService(); + + [ Override("StopService"), + Provider("cmpi:Service") ] + uint32 StopService(); + + [ Provider("cmpi:Service") ] + uint32 ReloadService(); + + [ Provider("cmpi:Service") ] + uint32 RestartService(); + + [ Provider("cmpi:Service") ] + uint32 TryRestartService(); + + [ Provider("cmpi:Service") ] + uint32 CondRestartService(); + + [ Provider("cmpi:Service") ] + uint32 ReloadOrRestartService(); + + [ Provider("cmpi:Service") ] + uint32 ReloadOrTryRestartService(); + + [ Provider("cmpi:Service") ] + uint32 TurnServiceOn(); + + [ Provider("cmpi:Service") ] + uint32 TurnServiceOff(); +}; diff --git a/providers/cmpi-service/mof/Linux_Service.registration b/providers/cmpi-service/mof/Linux_Service.registration new file mode 100644 index 0000000..ecf288b --- /dev/null +++ b/providers/cmpi-service/mof/Linux_Service.registration @@ -0,0 +1,2 @@ +# Classname Namespace Providername Libraryname Capabilities ... +Linux_Service root/cimv2 Service Service instance method |