diff options
Diffstat (limited to 'extra/stackbin.service')
-rw-r--r-- | extra/stackbin.service | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/stackbin.service b/extra/stackbin.service new file mode 100644 index 0000000..f3088be --- /dev/null +++ b/extra/stackbin.service @@ -0,0 +1,20 @@ +[Unit] +Description=Stackbin pastebin service +Wants=network-online.target +After=network.target syslog.target + +[Service] +#Environment= +WorkingDirectory=/var/www/stackbin +User=stackbin +Group=stackbin +Type=simple +ExecStart=/usr/sbin/stackbin.bin +TimeoutStartSec=120 +ExecStop=/usr/sbin/uwsgi --stop /var/www/stackbin/stackbin.pid +RestartSec=15 +Restart=always +KillSignal=SIGINT + +[Install] +WantedBy=multi-user.target |