I would recommend not using the PostAction reboot at all in baselines, unless you make it so the baseline can only ever run once using relevance, which doesn’t sound like you want to do.
Have the task that sets the time stamp use the action script:
action may require restart
Then have a different action that checks that uptime is greater than 1 day and that a restart is required, and have that action schedule the reboot using the PostAction mechanism. This different action should work for all reboots and will not need to be stopped or restarted.
###Related:
- Action with restart in the middle
- http://www-01.ibm.com/support/docview.wss?uid=swg21506002
- https://bigfix.me/fixlet/details/589
- https://bigfix.me/fixlet/details/588
- https://bigfix.me/fixlet/details/527
- https://social.technet.microsoft.com/Forums/exchange/en-US/0b9efb57-5adb-4399-a968-c2ee1a321baf/how-to-cancel-pending-system-reboot?forum=exchangesvrgenerallegacy