From 1212ab2e82c05e518eb40237ecaad0fe002bf2d7 Mon Sep 17 00:00:00 2001 From: marco morais <93558171+marcoemorais-aws@users.noreply.github.com> Date: Wed, 24 Nov 2021 20:09:37 -0800 Subject: [PATCH] Handler typo (#193) * Added support for fetching Job Handler directory field from config file * Clang Formatting * Fix typo in sample-job-handlers service command Co-authored-by: Harsh Gandhi --- sample-job-handlers/restart-services.sh | 6 +++--- sample-job-handlers/start-services.sh | 6 +++--- sample-job-handlers/stop-services.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sample-job-handlers/restart-services.sh b/sample-job-handlers/restart-services.sh index 1ac5326a..2899e3dc 100755 --- a/sample-job-handlers/restart-services.sh +++ b/sample-job-handlers/restart-services.sh @@ -24,13 +24,13 @@ then for service in $services do if id "$user" 2>/dev/null && command -v "sudo" > /dev/null; then - sudo -u "$user" -n service restart "$service" + sudo -u "$user" -n service "$service" restart else echo "username or sudo command not found" - service restart "$service" + service "$service" restart fi done else >&2 echo "No suitable package manager found" exit 1 -fi \ No newline at end of file +fi diff --git a/sample-job-handlers/start-services.sh b/sample-job-handlers/start-services.sh index 2993dcd4..49bcf11f 100755 --- a/sample-job-handlers/start-services.sh +++ b/sample-job-handlers/start-services.sh @@ -24,10 +24,10 @@ then for service in $services do if id "$user" 2>/dev/null && command -v "sudo" > /dev/null; then - sudo -u "$user" -n service start "$service" + sudo -u "$user" -n service "$service" start else echo "username or sudo command not found" - service start "$service" + service "$service" start fi done -fi \ No newline at end of file +fi diff --git a/sample-job-handlers/stop-services.sh b/sample-job-handlers/stop-services.sh index a42ddf8a..42327d6c 100755 --- a/sample-job-handlers/stop-services.sh +++ b/sample-job-handlers/stop-services.sh @@ -24,10 +24,10 @@ then for service in $services do if id "$user" 2>/dev/null && command -v "sudo" > /dev/null; then - sudo -u "$user" -n service stop "$service" + sudo -u "$user" -n service "$service" stop else echo "username or sudo command not found" - service stop "$service" + service "$service" stop fi done -fi \ No newline at end of file +fi