This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add packaging support for Systemd (for 16.04)
Various other small packaging changes/improvements Rename nginx to NGINX: https://forum.nginx.org/read.php?2,255874,255879
- Loading branch information
1 parent
b1b9c71
commit 49ba398
Showing
14 changed files
with
115 additions
and
50 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
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
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
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,18 +1,41 @@ | ||
<html> | ||
<title>Failed to connect to DIGITS</title> | ||
<body> | ||
<h1>Error: Unable to connect to NVIDIA DIGITS</h1> | ||
<h1>Error: Unable to connect to DIGITS</h1> | ||
|
||
<h3>Restart the server</h3> | ||
<p> | ||
To fix this problem, try stopping and restarting the DIGITS server by running | ||
the following two commands: | ||
On Ubuntu 14.04, use this command to restart the server: | ||
</p> | ||
<pre> | ||
sudo stop digits | ||
sudo start digits | ||
sudo service digits restart | ||
</pre> | ||
<p> | ||
If you are still encountering problems after attempting to restart the DIGITS | ||
server, check /var/log/digits/digits.log for errors. | ||
On Ubuntu 16.04, use this command to restart the server: | ||
</p> | ||
<pre> | ||
sudo systemctl restart digits | ||
</pre> | ||
|
||
<h3>Check the logs for errors</h3> | ||
<p> | ||
If you are still encountering problems after restarting, check the logs for errors. | ||
</p> | ||
<pre> | ||
cat /var/log/digits/digits.log | ||
</pre> | ||
</p> | ||
<p> | ||
For additional messsages on Ubuntu 14.04: | ||
</p> | ||
<pre> | ||
cat /var/log/upstart/digits.log | ||
</pre> | ||
<p> | ||
For additional messages on Ubuntu 16.04: | ||
</p> | ||
<pre> | ||
journalctl -u digits.service | ||
</pre> | ||
</body> | ||
</html> |
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,4 +1,4 @@ | ||
# DIGITS nginx site | ||
# DIGITS NGINX site | ||
|
||
server { | ||
listen 80; #AUTOCONFIG port (DO NOT DELETE THIS LINE) | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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
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
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,15 @@ | ||
# DIGITS systemd service | ||
[Unit] | ||
Description=DIGITS server | ||
After=local-fs.target network.target | ||
|
||
[Service] | ||
User=www-data | ||
Environment="DIGITS_JOBS_DIR=/var/lib/digits/jobs" | ||
Environment="DIGITS_LOGFILE_FILENAME=/var/log/digits/digits.log" | ||
ExecStart=/usr/bin/python -m digits -p 34448 | ||
Restart=on-failure | ||
ExecStop=/bin/kill -INT $MAINPID | ||
|
||
[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
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,5 +1,5 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --parallel --with=python2 --buildsystem=pybuild | ||
dh $@ --parallel --with=python2,systemd --buildsystem=pybuild | ||
|
This file was deleted.
Oops, something went wrong.