1234567891011121314151617181920212223242526272829303132333435363738 |
- # Usage:
- # ------
- #
- # 1. Place this file under /etc/systemd/system/
- # 2. Adjust the paths and other settings below if necessary
- # 3. Activate using: sudo systemctl enable mcfi.service
- [Unit]
- Description=MCFI federation server
- After=network.target
- [Service]
- # Edit environment variables to match your installation
- # Environment=VAR1=...
- # Environment=VAR2=...
- # Edit to match your installation
- ExecStart=/opt/mcfi/venv/bin/gunicorn --config /opt/mcfi/gunicorn.py mcfi:application
- # Run as user "mcfi"
- User=mcfi
- Group=mcfi
- Restart=on-abort
- # SuccessExitStatus=143
- ### By default, the service logs to journalctl only.
- ### If additional logging to a file is required, uncomment the following three lines
- # StandardOutput=syslog
- # StandardError=syslog
- # SyslogIdentifier=mcfi
- ### This logs to syslog. If, e.g., rsyslogd is used, you can provide a file
- ### /etc/rsyslog.d/mcfi.conf, consisting of the following two lines (uncommented)
- ### if $programname == 'mcfi' then /var/log/mcfi/stderrout.log
- ### if $programname == 'mcfi' then stop
- [Install]
- WantedBy=multi-user.target
|