mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-20 10:13:17 +00:00
Fixed auto-update on macOS, so it restarts correctly
This commit is contained in:
@@ -4824,7 +4824,7 @@ int MeshAgent_Start(MeshAgentHostContainer *agentHost, int paramLen, char **para
|
|||||||
case MeshAgent_Posix_PlatformTypes_LAUNCHD:
|
case MeshAgent_Posix_PlatformTypes_LAUNCHD:
|
||||||
if (agentHost->logUpdate != 0) { ILIBLOGMESSSAGE("SelfUpdate -> Complete... [kickstarting service]"); }
|
if (agentHost->logUpdate != 0) { ILIBLOGMESSSAGE("SelfUpdate -> Complete... [kickstarting service]"); }
|
||||||
sprintf_s(ILibScratchPad, sizeof(ILibScratchPad), "launchctl kickstart -k system/meshagent"); // Restart the service
|
sprintf_s(ILibScratchPad, sizeof(ILibScratchPad), "launchctl kickstart -k system/meshagent"); // Restart the service
|
||||||
ignore_result(MeshAgent_System(ILibScratchPad));
|
ignore_result(system(ILibScratchPad));
|
||||||
break;
|
break;
|
||||||
case MeshAgent_Posix_PlatformTypes_SYSTEMD:
|
case MeshAgent_Posix_PlatformTypes_SYSTEMD:
|
||||||
if (agentHost->logUpdate != 0) { ILIBLOGMESSSAGE("SelfUpdate -> Complete... [SYSTEMD should auto-restart]"); }
|
if (agentHost->logUpdate != 0) { ILIBLOGMESSSAGE("SelfUpdate -> Complete... [SYSTEMD should auto-restart]"); }
|
||||||
|
|||||||
Reference in New Issue
Block a user