Skip to content

Commit

Permalink
Handler typo (#193)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
marcoemorais-aws and HarshGandhi-AWS authored Nov 25, 2021
1 parent e1c1a2c commit 1212ab2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions sample-job-handlers/restart-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi
6 changes: 3 additions & 3 deletions sample-job-handlers/start-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi
6 changes: 3 additions & 3 deletions sample-job-handlers/stop-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi

0 comments on commit 1212ab2

Please sign in to comment.