Skip to content
Permalink
2287f9921b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
21 lines (18 sloc) 583 Bytes
# /etc/systemd/system/simple-payments.service
[Unit]
Description=WWW App - Simple Payments
PartOf=nginx.service
[Service]
User=payments
Group=nogroup
SyslogIdentifier=payments
StandardOutput=syslog
StandardError=syslog
WorkingDirectory=/srv/payments/venv
Environment="PATH=/usr/bin:/bin:/srv/payments/venv/bin"
ExecStart=/srv/payments/venv/bin/waitress-serve --unix-socket-perms=0666 --unix-socket=/run/payments/waitress.sock --url-prefix=/payments --call 'payments:create_app'
ExecStop=/bin/kill -s TERM $MAINPID
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target