Skip to content

Commit

Permalink
Updating system-D to add MS logging (#54)
Browse files Browse the repository at this point in the history
* updating systemD to add MS logging

* fixing typo and adding directory for logging

* commenting out test file

* updating logs directory folder structure

* fixing logs directory path to relative

* updating absolute path in StandardOutput to analyse exit code

* verifying absolute log path

* verifying logging parameter

* testing default systemD logs
  • Loading branch information
picksitquick authored Mar 2, 2024
1 parent d239fcc commit bd7ddff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions gamedoora-user-services.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,18 @@ User=gamedoora
ExecStart=/opt/gamedoora/gamedoora-user-services.jar
SuccessExitStatus=143
Environment="CONFIG_SERVER=http://localhost:8888"

# Redirect standard output and standard error to the main log file.
StandardOutput=file:/var/log/gamedoora/user_service_logs/user_services.log
StandardError=file:/var/log/gamedoora/user_service_logs/user_services.log

# Rotate log based on days, capacity, file size, compress, etc.
# LogsDirectory=/gamedoora/user_service_logs
# RuntimeMaxUse=15M
# RuntimeMaxFileSize=10M

# Comment RunTimeMaxFileSize and Uncomment below, if instead of file size you want to switch to log size.
# RuntimeKeepFree=500M

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ void findListOfUsers(){
assertNotNull(userList);
assertEquals(userList.size() , 1);
}
}
}

0 comments on commit bd7ddff

Please sign in to comment.