diff --git a/services/cgAdminFrontend.service b/services/cgAdminFrontend.service index 8b5013d..f35627e 100644 --- a/services/cgAdminFrontend.service +++ b/services/cgAdminFrontend.service @@ -5,7 +5,7 @@ After=network.target [Service] User=root WorkingDirectory=/ -ExecStart=nohup /opt/CodeGrader_venv/bin/cgAdminFrontend > /var/log/cgAdminFrontend.log & +ExecStart=/opt/CodeGrader_venv/bin/cgAdminFrontend # optional items below Restart=always RestartSec=3 diff --git a/services/cgApiBackend.service b/services/cgApiBackend.service index b8fda5c..dab6eb3 100644 --- a/services/cgApiBackend.service +++ b/services/cgApiBackend.service @@ -5,7 +5,7 @@ After=network.target [Service] User=root WorkingDirectory=/ -ExecStart=nohup /opt/CodeGrader_venv/bin/cgApiBackend > /var/log/cgApiBackend.log & +ExecStart=/opt/CodeGrader_venv/bin/cgApiBackend # optional items below Restart=always RestartSec=3 diff --git a/services/cgEvaluationService.service b/services/cgEvaluationService.service index e28bd99..cf69126 100644 --- a/services/cgEvaluationService.service +++ b/services/cgEvaluationService.service @@ -5,7 +5,7 @@ After=network.target [Service] User=root WorkingDirectory=/ -ExecStart=nohup /opt/CodeGrader_venv/bin/cgEvaluationService > /var/log/cgEvaluationService.log & +ExecStart=/opt/CodeGrader_venv/bin/cgEvaluationService # optional items below Restart=always RestartSec=3 diff --git a/services/cgExecutionService.service b/services/cgExecutionService.service index 60149f2..7d92b57 100644 --- a/services/cgExecutionService.service +++ b/services/cgExecutionService.service @@ -5,7 +5,7 @@ After=network.target [Service] User=root WorkingDirectory=/ -ExecStart=nohup /opt/CodeGrader_venv/bin/cgExecutionService > /var/log/cgExecutionService.log & +ExecStart=/opt/CodeGrader_venv/bin/cgExecutionService # optional items below Restart=always RestartSec=3 diff --git a/services/cgUserFrontend.service b/services/cgUserFrontend.service index a143868..f228c74 100644 --- a/services/cgUserFrontend.service +++ b/services/cgUserFrontend.service @@ -5,7 +5,7 @@ After=network.target [Service] User=root WorkingDirectory=/ -ExecStart=nohup /opt/CodeGrader_venv/bin/cgUserFrontend > /var/log/cgUserFrontend.log & +ExecStart=/opt/CodeGrader_venv/bin/cgUserFrontend # optional items below Restart=always RestartSec=3