Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
b1740d81
Commit
b1740d81
authored
Apr 13, 2019
by
Дмитрий Никулин
Committed by
Никита Ефремов
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system_services: replace isActive with getActiveState
parent
298d48ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fmod_system_services.py
plugins/functions/fmod_system_services.py
+3
-3
No files found.
plugins/functions/fmod_system_services.py
View file @
b1740d81
...
...
@@ -51,8 +51,8 @@ class SystemServices(service.FunctionObject) :
logger
.
verbose
(
"{mod}: Request to stop service
\"
%
s
\"
"
%
name
)
self
.
_systemd_manager
.
StopUnit
(
name
+
'.service'
,
'replace'
)
@service.functionMethod
(
SYSTEM_SERVICE_METHODS_NAMESPACE
,
in_signature
=
"s"
,
out_signature
=
"
b
"
)
def
isActiv
e
(
self
,
name
)
:
@service.functionMethod
(
SYSTEM_SERVICE_METHODS_NAMESPACE
,
in_signature
=
"s"
,
out_signature
=
"
s
"
)
def
getActiveStat
e
(
self
,
name
)
:
unit
=
DBusInterface
(
self
.
_bus
.
get_object
(
'org.freedesktop.systemd1'
,
...
...
@@ -65,7 +65,7 @@ class SystemServices(service.FunctionObject) :
'ActiveState'
,
dbus_interface
=
'org.freedesktop.DBus.Properties'
)
return
active_state
==
'active'
or
active_state
==
'reloading'
return
active_state
class
Service
(
service
.
Service
)
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment