System services
This module provides high-level tools for managing system services.
The underlying operations use the service command, allowing to
support both upstart services and traditional SysV-style
/etc/init.d/ scripts.
-
fabtools.require.service.started(service)[source]
Require a service to be started.
from fabtools import require
require.service.started('foo')
-
fabtools.require.service.stopped(service)[source]
Require a service to be stopped.
from fabtools import require
require.service.stopped('foo')
-
fabtools.require.service.restarted(service)[source]
Require a service to be restarted.
from fabtools import require
require.service.restarted('foo')