Shortened restart time to 15s

This commit is contained in:
Rick Falkvinge
2017-01-17 12:16:06 +01:00
parent f31144a644
commit 466fbcef94
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ namespace Swarmops.Backend
if (!SystemSettings.DatabaseInitialized)
{
// will restart the service every 30s until db initialized on OOBE
// will restart the service every 15s until db initialized on OOBE
// also, the read of DatabaseInitialized can and will fail if
// we're not initalized enough to even have a database
+1 -1
View File
@@ -7,7 +7,7 @@ User=root
ExecStart=/usr/bin/mono /usr/share/swarmops/backend/Swarmops.Backend.exe
WorkingDirectory=/usr/share/swarmops/backend
Restart=on-failure
RestartSec=30
RestartSec=15
[Install]
+1 -1
View File
@@ -25,7 +25,7 @@ namespace Swarmops.Frontend.Socket
if (!SystemSettings.DatabaseInitialized)
{
// will restart the service every 30s until db initialized on OOBE
// will restart the service every 15s until db initialized on OOBE
// also, the read of DatabaseInitialized can and will fail if
// we're not initalized enough to even have a database
@@ -7,7 +7,7 @@ User=root
ExecStart=/usr/bin/mono /usr/share/swarmops/frontend/bin/Swarmops.Frontend.Socket.exe
WorkingDirectory=/usr/share/swarmops/frontend
Restart=on-failure
RestartSec=30
RestartSec=15
[Install]
WantedBy=multi-user.target