Menu

[r8445]: / projects / cli / services / cli.py  Maximize  Restore  History

Download this file

34 lines (23 with data), 700 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""
The service CLI.
Copyright (c) 2010-2011 iXsystems, Inc., All rights reserved.
See COPYING for more details.
Garrett Cooper, October 2011
"""
import core.cli
class Services(core.cli.CLI):
"""A superclass for managing services."""
def __init__(self):
core.cli.CLI.__init__(self)
def do_start(self, arg):
"""Start a service"""
raise NotImplementedError
def do_stop(self, arg):
"""Stop a service"""
raise NotImplementedError
def do_restart(self, arg):
"""Restart a service"""
raise NotImplementedError
def do_reload(self, arg):
"""Reload a service's configuration"""
raise NotImplementedError
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.