{"id":13536,"date":"2026-07-20T08:30:16","date_gmt":"2026-07-20T15:30:16","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=13536"},"modified":"2026-07-20T08:30:16","modified_gmt":"2026-07-20T15:30:16","slug":"stop-trying-to-restart-feature","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/stop-trying-to-restart-feature\/","title":{"rendered":"AlwaysUp Feature Spotlight: Stop Trying to Restart a Failing Application"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/stop-trying-to-restart-application-256x256.webp\" style=\"margin-bottom:20px;\" title=\"Stop Trying to Restart your Application\" alt=\"Stop Trying to Restart your Application\" border=\"0\" width=\"256\" height=\"256\"><\/div>\n<div id=\"blog-toc-container\" style=\"margin-top:20px;margin-bottom:40px;\">\n<ul>\n<li><a href=\"#overview\">Why should AlwaysUp stop trying to restart my application?<\/a><\/li>\n<li><a href=\"#how-to-give-up-restarting\">How do I tell AlwaysUp when to give up restarting?<\/a><\/li>\n<li><a href=\"#tips\">What are your best tips for using the stop-restarting feature?<\/a><\/li>\n<\/ul>\n<\/div>\n<p><a id=\"overview\"><\/a><\/p>\n<h2 class=\"blog-caption\">Why should AlwaysUp stop trying to restart my application?<\/h2>\n<p>Let&#8217;s be clear: AlwaysUp&#8217;s primary job is to make sure that your program is always running. At its core, the software will do everything in its power to prevent prolonged downtime, which can be costly to you and your team.<\/p>\n<p>But even so, there are times when AlwaysUp isn&#8217;t able to fulfill its noble mission. And in those rare scenarios, it may be best to <b>fail gracefully<\/b> instead of continuing to fight an unwinnable battle.<\/p>\n<p>Let&#8217;s explore the issue through an example.<\/p>\n<h3>Example: A critical network drive vanishes<\/h3>\n<p>In this scenario, you&#8217;ve already installed your program as a Windows Service with AlwaysUp. Even though it&#8217;s running on the PC in your cubicle, the executable sits on a network drive hosted by the file server in your office.<\/p>\n<p>Overnight, a power surge knocks out the file server. It&#8217;s completely dead. Your IT team will have to restore it from a backup later that day.<\/p>\n<p>Luckily your PC is still working. When it roars back to life, AlwaysUp immediately tries to start your application. But since the executable sits on the recently departed file server, AlwaysUp fails to start it. The error looks like this:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-failed-to-start-network-app-error.png\" class=\"zoomPopup\" title=\"AlwaysUp fails to start a network application\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-failed-to-start-network-app-error.png\" title=\"AlwaysUp fails to start a network application (click to enlarge)\" alt=\"AlwaysUp fails to start a network application\" border=\"0\"><\/a><\/div>\n<p>Undaunted, AlwaysUp will try again &mdash; and fail again. In fact, it will keep trying every second, thousands of times, filling up your event logs and not getting anything done. It&#8217;s the very definition of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Flogging_a_dead_horse\" target=\"_blank\">beating a dead horse<\/a>, until you arrive at your desk and manually stop AlwaysUp.<\/p>\n<p>To avoid that futile cycle, you should configure AlwaysUp to give up after a while. We&#8217;ll cover that prudent <b>safety net<\/b> in the next section.<\/p>\n<p><a id=\"how-to-give-up-restarting\"><\/a><\/p>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">How do I tell AlwaysUp when to give up restarting?<\/h2>\n<p>The mechanism is simple. Instruct AlwaysUp to stop trying to restart your application and exit if it fails several times over a given period.<\/p>\n<p>The controls are on the <b>Restart<\/b> tab:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-stop-restarting-controls.png\" class=\"zoomPopup\" title=\"Set when to stop restarting a failing application\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-stop-restarting-controls.png\" title=\"Set when to stop restarting a failing application (click to enlarge)\" alt=\"Set when to stop restarting a failing application\" border=\"0\"><\/a><\/div>\n<p>By default, AlwaysUp gives up if it fails 5 times in 1 minute. That&#8217;s proven to be a good safety net for many customers but please feel free to tune the values for your specific application.<\/p>\n<p>Understand that once it hits the threshold you&#8217;ve defined, <b>AlwaysUp will shut down<\/b>. The Windows Service created to manage your application will stop. You&#8217;ll see an error like this in the activity report:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-gives-up-restarting.png\" class=\"zoomPopup\" title=\"AlwaysUp logs an error when it gives up restarting\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-gives-up-restarting.png\" title=\"AlwaysUp logs an error when it gives up restarting (click to enlarge)\" alt=\"AlwaysUp logs an error when it gives up restarting\" border=\"0\"><\/a><\/div>\n<p>After you fix the underlying problem, you&#8217;ll have to manually restart AlwaysUp (or reboot your computer) to run your application as a service again.<\/p>\n<p><a id=\"tips\"><\/a><\/p>\n<hr class=\"blog-section\">\n<div style=\"width:100%;margin-bottom:30px;\">\n<div style=\"margin:0px;float:right;\"><a href=\"#top\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.coretechnologies.com\/images\/top.jpg\" border=\"0\" width=\"50\" height=\"18\" title=\"Go to the top\" alt=\"\"><\/a><\/div>\n<\/div>\n<h2 class=\"blog-caption\">What are your best tips for using the stop-restarting feature?<\/h2>\n<h3>Tip #1: Set up email alerts to tell you when AlwaysUp gives up<\/h3>\n<p>If you&#8217;d like to be notified when AlwaysUp stops trying to restart your application and shuts down, you should <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/how-to-setup-email\/\">configure email alerts<\/a>.<\/p>\n<p>The final email (after the stop-restarting threshold has been crossed) will clearly communicate what&#8217;s going on:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-stopped-too-many-retries.png\" class=\"zoomPopup\" title=\"Email telling you that AlwaysUp has stopped\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-stopped-too-many-retries.png\" title=\"Email telling you that AlwaysUp has stopped (click to enlarge)\" alt=\"Email telling you that AlwaysUp has stopped\" border=\"1\" width=\"520\"><\/a><\/div>\n<p>That way, you&#8217;ll know that you need to jump in to get your application going again.<\/p>\n<h3>Tip #2: If AlwaysUp gives up, troubleshoot your application<\/h3>\n<p>If your application repeatedly fails to start, it&#8217;s likely a serious problem. It&#8217;s certainly not one that AlwaysUp will be able to solve by itself.<\/p>\n<p>You should jump in to troubleshoot. Here are a few things to try:<\/p>\n<ul>\n<li>\n<p>Start your application on your desktop (without AlwaysUp involved) and see if it reports any warnings or errors.<\/p>\n<\/li>\n<li>\n<p>Try the same command line that AlwaysUp uses to launch your application. To do so, combine both the <b>Application<\/b> and <b>Arguments<\/b> fields, making sure to enclose the path in quotes if it contains a space:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-compose-application-command-line.png\" class=\"zoomPopup\" title=\"Compose your application command line\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-compose-application-command-line.png\" title=\"Compose your application command line (click to enlarge)\" alt=\"Compose your application command line\" border=\"0\"><\/a><\/div>\n<\/li>\n<li>\n<p>Review any log files that your application writes.<\/p>\n<\/li>\n<li>\n<p>Watch out for sneaky automatic updates that break things. For example, if an update relocates your application&#8217;s main executable file, you&#8217;ll need to update the path in AlwaysUp.<\/p>\n<\/li>\n<\/ul>\n<div style=\"margin-top:30px\" align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/alwaysup-feature-spotlight\/\" title=\"More AlwaysUp features\"><span class=\"nobr\">More AlwaysUp features&#8230;<\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/dropbox-service-not-working-after-update\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"My Dropbox Windows Service no longer works after Updating Dropbox \u2013 Help!\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/dropbox-trouble-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">My Dropbox Windows Service no longer works after Updating Dropbox - Help!<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/google-drive-for-desktop-not-working\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Why isn&#039;t Google Drive For Desktop Working with AlwaysUp?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/google-drive-not-working-as-service-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Why isn&#039;t Google Drive For Desktop Working with AlwaysUp?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/capture-console-output-feature\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"AlwaysUp Feature Spotlight: Capture Console Output\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/save-console-output-to-log-file-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp Feature Spotlight: Capture Console Output<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Why should AlwaysUp stop trying to restart my application? How do I tell AlwaysUp when to give up restarting? What are your best tips for using the stop-restarting feature? Why should AlwaysUp stop trying to restart my application? Let&#8217;s be &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/stop-trying-to-restart-feature\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":13553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,345,405,80],"class_list":["post-13536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-alwaysup-feature-spotlight","tag-alwaysup-stop-restarting-feature","tag-feature-spotlight"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/13536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=13536"}],"version-history":[{"count":13,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/13536\/revisions"}],"predecessor-version":[{"id":13619,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/13536\/revisions\/13619"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13553"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=13536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=13536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=13536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}