Shortened restart time to 15s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user