We noticed that when creating a new service, the :create action would start the service twice. Once during the action_enable step and once again for restart_service. This PR fixes the issue by only restarting the service if the action was previously enabled. If the service was not previously enabled (either disabled or not created) then it's not necessary to restart the service after its been started.
Signed-off-by: Daniel Low danglow@gmail.com
Description
We noticed that when creating a new service, the
:create
action would start the service twice. Once during theaction_enable
step and once again forrestart_service
. This PR fixes the issue by only restarting the service if the action was previously enabled. If the service was not previously enabled (either disabled or not created) then it's not necessary to restart the service after its been started.Check List