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

[Service]
Environment=STACKBIN_WSGI_INI=/etc/stackbin.wsgi.ini
Environment=STACKBIN_CONF=/etc/stackbin.conf
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