Skip to content

Commit

Permalink
Add comments about error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Moravec committed May 30, 2014
1 parent 77f4c59 commit 007bd18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/runlevel/src/modules/Service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def Enabled name
alias_method :enabled?, :Enabled

# Enable service
# Logs error with output from systemctl if the command fails
# @param [String] service service to be enabled
# @return true if operation is successful
def Enable service_name
Expand All @@ -116,6 +117,7 @@ def Enable service_name
alias_method :enable, :Enable

# Disable service
# Logs error with output from systemctl if the command fails
# @param [String] service service to be disabled
# @return true if operation is successful
def Disable service_name
Expand All @@ -129,6 +131,7 @@ def Disable service_name
alias_method :disable, :Disable

# Start service
# Logs error with output from systemctl if the command fails
# @param [String] service service to be started
# @return true if operation is successful
def Start service_name
Expand All @@ -142,6 +145,7 @@ def Start service_name
alias_method :start, :Start

# Restart service
# Logs error with output from systemctl if the command fails
# @param [String] service service to be restarted
# @return true if operation is successful
def Restart service_name
Expand All @@ -155,6 +159,7 @@ def Restart service_name
alias_method :restart, :Restart

# Reload service
# Logs error with output from systemctl if the command fails
# @param [String] service service to be reloaded
# @return true if operation is successful
def Reload service_name
Expand All @@ -168,6 +173,7 @@ def Reload service_name
alias_method :reload, :Reload

# Stop service
# Logs error with output from systemctl if the command fails
# @param [String] service service to be stopped
# @return true if operation is successful
def Stop service_name
Expand Down

0 comments on commit 007bd18

Please sign in to comment.