diff options
Diffstat (limited to 'extra/fifconfig.service')
-rw-r--r-- | extra/fifconfig.service | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/fifconfig.service b/extra/fifconfig.service new file mode 100644 index 0000000..fe56e8f --- /dev/null +++ b/extra/fifconfig.service @@ -0,0 +1,21 @@ +[Unit] +Description=fifconfig http client diagnostic webapp +Wants=network-online.target +After=network.target syslog.target + +[Service] +Environment=FIFCONFIG_WSGI_INI=/etc/fifconfig.wsgi.ini +Environment=FIFCONFIG_CONF=/etc/fifconfig.conf +WorkingDirectory=/var/fifconfig +User=fifconfig +Group=fifconfig +Type=simple +ExecStart=/usr/sbin/fifconfig.bin +TimeoutStartSec=120 +ExecStop=/usr/sbin/uwsgi --stop /var/fifconfig/fifconfig-wsgi.pid +RestartSec=15 +Restart=always +KillSignal=SIGINT + +[Install] +WantedBy=multi-user.target |