You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: