-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipwebtools.service
More file actions
29 lines (24 loc) · 849 Bytes
/
ipwebtools.service
File metadata and controls
29 lines (24 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[Unit]
Description=IP Web Tools
After=syslog.target
After=network.target
[Service]
Type=simple
SyslogIdentifier=ipwebtools
StandardOutput=null
User=www-data
Group=www-data
WorkingDirectory=/var/www/dev/ipwebtools
ExecStart=/var/www/dev/ipwebtools/.venv/bin/gunicorn -k ipwebtools.workers.CustomWorker -w $WORKERS -b ${LISTENING}:${PORT} --timeout $TIMEOUT --pid /var/run/ipwebtools/server.pid --log-file=${LOG_DIR}/gunicorn.log ipwebtools:app
Restart=always
RuntimeDirectory=ipwebtools
Environment=VIRTUAL_ENV=/var/www/dev/ipwebtools/.venv/
Environment=WORKERS=2
Environment=LISTENING=127.0.0.1
Environment=TIMEOUT=60
Environment=PORT=8000
Environment=LOG_DIR=/var/log/ipwebtools/
Environment=PATH=/var/www/dev/ipwebtools/.venv/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=-/var/www/dev/ipwebtools/.env
[Install]
WantedBy=multi-user.target