diff --git a/services/cgAdminFrontend.service b/services/cgAdminFrontend.service new file mode 100644 index 0000000..7f3b0b2 --- /dev/null +++ b/services/cgAdminFrontend.service @@ -0,0 +1,14 @@ +[Unit] +Description=Running the admin frontend of the CodeGrader +After=network.target + +[Service] +User=root +WorkingDirectory=/ +ExecStart=nohup cgAdminFrontend > /var/log/cgAdminFrontend.log & +# optional items below +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/services/cgApiBackend.service b/services/cgApiBackend.service new file mode 100644 index 0000000..8c5d7d2 --- /dev/null +++ b/services/cgApiBackend.service @@ -0,0 +1,14 @@ +[Unit] +Description=Running the API of the backend of the CodeGrader +After=network.target + +[Service] +User=root +WorkingDirectory=/ +ExecStart=nohup cgApiBackend > /var/log/cgApiBackend.log & +# optional items below +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/services/cgEvaluationService.service b/services/cgEvaluationService.service new file mode 100644 index 0000000..39fd480 --- /dev/null +++ b/services/cgEvaluationService.service @@ -0,0 +1,14 @@ +[Unit] +Description=Running the Evaluation Servie of the CodeGrader +After=network.target + +[Service] +User=root +WorkingDirectory=/ +ExecStart=nohup cgEvaluationService > /var/log/cgEvaluationService.log & +# optional items below +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/services/cgExecutionService.service b/services/cgExecutionService.service new file mode 100644 index 0000000..b419334 --- /dev/null +++ b/services/cgExecutionService.service @@ -0,0 +1,14 @@ +[Unit] +Description=Running the Execution Servie of the CodeGrader +After=network.target + +[Service] +User=root +WorkingDirectory=/ +ExecStart=nohup cgExecutionService > /var/log/cgExecutionService.log & +# optional items below +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/services/cgUserFrontend.service b/services/cgUserFrontend.service new file mode 100644 index 0000000..d4e62d5 --- /dev/null +++ b/services/cgUserFrontend.service @@ -0,0 +1,14 @@ +[Unit] +Description=Running the user frontend of the CodeGrader +After=network.target + +[Service] +User=root +WorkingDirectory=/ +ExecStart=nohup cgUserFrontend > /var/log/cgUserFrontend.log & +# optional items below +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file