mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-16 02:12:49 +00:00
33 lines
783 B
Desktop File
33 lines
783 B
Desktop File
# myNode www service
|
|
# /etc/systemd/system/www.service
|
|
|
|
###############################
|
|
# NOT IN USE ANYMORE (keeping for gunicorn reference)
|
|
###############################
|
|
|
|
[Unit]
|
|
Description=myNode Web Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
KillMode=mixed
|
|
KillSignal=2
|
|
TimeoutSec=30
|
|
Restart=always
|
|
RestartSec=10
|
|
Nice=-15
|
|
IOAccounting=true
|
|
IOWeight=2000
|
|
WorkingDirectory=/var/www/mynode
|
|
ExecStartPre=/usr/bin/mynode_gen_cert.sh https 825
|
|
ExecStart=/usr/bin/python2.7 /usr/bin/gunicorn -b 0.0.0.0:443 --certfile=/home/bitcoin/.mynode/https/myNode.local.crt --keyfile=/home/bitcoin/.mynode/https/myNode.local.key --workers 2 --timeout 300 wsgi:app
|
|
User=root
|
|
Group=root
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=www
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|