-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding linux services for the deployment
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |