aboutsummaryrefslogtreecommitdiff
path: root/extra/stackbin.service
blob: d2aad390834621bb6ec60940c6a563a506ba175d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=Stackbin pastebin service
Wants=network-online.target
After=network.target syslog.target

[Service]
Environment=STACKBIN_WSGI_INI=/etc/stackbin.wsgi.ini
WorkingDirectory=/var/stackbin
User=stackbin
Group=stackbin
Type=simple
ExecStart=/usr/sbin/stackbin.bin
TimeoutStartSec=120
ExecStop=/usr/sbin/uwsgi --stop /var/stackbin/stackbin-wsgi.pid
RestartSec=15
Restart=always
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target
bgstack15