Skip to content

Commit

Permalink
adding linux services for the deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ooemperor committed Mar 11, 2024
1 parent 3c2bc5e commit d5b5800
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
14 changes: 14 additions & 0 deletions services/cgAdminFrontend.service
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions services/cgApiBackend.service
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions services/cgEvaluationService.service
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions services/cgExecutionService.service
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions services/cgUserFrontend.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d5b5800

Please sign in to comment.