This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from davidschlachter/master
Fix update bugs, change server, untrack course database.
- Loading branch information
Showing
13 changed files
with
61 additions
and
43,271 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 |
---|---|---|
@@ -1 +1,7 @@ | ||
*.pyc | ||
skippedCourses.txt | ||
courses.txt | ||
db_courses.csv | ||
db_sections.csv | ||
courseCodes.csv | ||
db_activities.csv |
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,40 @@ | ||
# systemd init script for running the server. | ||
# To use: make a system user, 'schedgen', adjust the paths below, | ||
# where WorkingDirectory is where the server executable is, with the | ||
# schedule files at ../course-download. | ||
# | ||
# Move the script to /etc/systemd/system/schedule-generator.service, | ||
# and use systemctl enable schedule-generator to enable it. | ||
# | ||
|
||
[Unit] | ||
Description=Server for the uOttawa schedule generator | ||
Requires=network.target | ||
After=network.target | ||
|
||
[Service] | ||
WorkingDirectory=/etc/schedgen/uOttawa Schedule Generator/schedule-generator-master | ||
User=schedgen | ||
Group=schedgen | ||
#Environment= | ||
StandardOutput=syslog | ||
StandardError=syslog | ||
SyslogIdentifier= | ||
# Keeping the CapabilityBoundingSet empty is restrictive | ||
# ref. http://man7.org/linux/man-pages/man7/capabilities.7.html | ||
CapabilityBoundingSet= | ||
InaccessibleDirectories=/media | ||
PrivateDevices=true | ||
PrivateTmp=true | ||
# ProtectSystem can be 'full' if we want /etc to be read-only | ||
# as well, but if we do this we can't make server.stat | ||
ProtectSystem=true | ||
ProtectHome=true | ||
NoNewPrivileges=true | ||
Type=simple | ||
ExecStart=/usr/bin/java -jar ServerConsole-v1.1.0.jar 5555 | ||
Restart=always | ||
RestartSec=60 | ||
|
||
[Install] | ||
WantedBy=default.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
Oops, something went wrong.