Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac issue with service restart #22

Open
dracoyinyang opened this issue Aug 9, 2023 · 0 comments
Open

Mac issue with service restart #22

dracoyinyang opened this issue Aug 9, 2023 · 0 comments

Comments

@dracoyinyang
Copy link

In this part of the .sh file

status=$(launchctl list | grep com.labtechsoftware.LTSvc)
if [ -z "$status" ]; then
launchctl stop com.labtechsoftware.LTSvc
launchctl start com.labtechsoftware.LTSvc
status=$(launchctl list | grep com.labtechsoftware.LTSvc)
if [ -z "$status" ]; then
statusName="Stopped"
else
statusName="Running"
fi
else
statusName="Running"
fi

It appears that the service gets restarted.

problem is on all the macs I have I have to run the restart of the service manually before it will even notice the service has been upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant