Skip to content

Commit

Permalink
Merge pull request #63 from sean797/el7-systemd
Browse files Browse the repository at this point in the history
if systemd is running then use systemctl
  • Loading branch information
FrostyX committed Oct 21, 2016
2 parents 3acdfad + d532726 commit 19a108c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/resources/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _append_application(default_attrs, specific_attrs={}):
@staticmethod
def _helper(app):
if app.type == Applications.TYPES["DAEMON"]:
if System.init_system() == "systemd" and System.distribution() == "arch":
if System.init_system() == "systemd":
return "systemctl restart {0}".format(app.name)
else:
return "service {0} restart".format(app.name)
Expand Down

0 comments on commit 19a108c

Please sign in to comment.