Skip to content

Commit 8746120

Browse files
authoredAug 28, 2024
Check for the status [enabled|disabled] and restart|stop accordingly (#24)
1 parent b2965cb commit 8746120

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎install-linux.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ disable_unsupported_services () {
329329
restart_services () {
330330
# We need to reload any of our changes to the systemd files before restarting
331331
systemctl daemon-reload
332-
systemctl list-unit-files | grep 'cyral-' | awk '{print $1}' | xargs -r systemctl restart
332+
systemctl list-unit-files | grep 'cyral-' | grep enabled | awk '{print $1}' | xargs -r systemctl restart
333+
systemctl list-unit-files | grep 'cyral-' | grep disabled | awk '{print $1}' | xargs -r systemctl stop
333334
}
334335

335336
# Perform all Post Installation Tasks

0 commit comments

Comments
 (0)
Please sign in to comment.