Skip to content

Commit c3e1249

Browse files
committed
issue2551117 - add example systemd config
1 parent c64f687 commit c3e1249

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Features:
9797
- Added explanation for modifying Fileclass content files to
9898
customizing.txt. Result of mailing list question. (John Rouillard)
9999
- issue2551109 - Improve keyword editing in jinja2 template. (Cedric Krier)
100+
- issue2551117 - Add example systemd config
100101

101102
2020-07-13 2.0.0
102103

doc/admin_guide.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ On Unix systems, use the scripts/server-ctl script to control the
411411
roundup-server server. Copy it somewhere and edit the variables at the top
412412
to reflect your specific installation.
413413

414+
If you use systemd look at scripts/systemd.gunicorn. It is configured
415+
for a wsgi deployment using gunicorn, but may be a good starting
416+
point for your setup.
414417

415418
Windows
416419
-------

scripts/systemd.gunicorn

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=Roundup Server - roundup
3+
4+
[Service]
5+
User=roundup
6+
WorkingDirectory=/path/to/roundup/trackers/roundup
7+
SyslogIdentifier=roundup-server-roundup
8+
ExecStart=/path/to/gunicorn -b unix:///var/run/roundup/roundup.sock wsgi -w 4 --preload --max-requests 128 --max-requests-jitter 32 --timeout 60 --graceful-timeout 60 --access-logfile - --error-logfile
9+
ExecReload=/bin/kill -HUP $MAINPID
10+
ExecStop = /bin/kill -s TERM $MAINPID
11+
KillMode=mixed
12+
Restart=on-failure
13+
RestartSec=15s
14+
15+
[Install]
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)