123456789101112131415161718192021222324252627282930313233343536 |
- # 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 gunicorn.service
- [Unit]
- Description=Gunicorn Service
- After=network.target
- [Service]
- # Edit environment variables to match your installation
- # Environment=VAR1=...
- # Environment=VAR2=...
- # Edit to match your installation
- ExecStart=/usr/bin/gunicorn-3 --config /var/lib/trurl/mcfi/gunicorn.py --chdir /var/lib/trurl/mcfi mcfi:application
- # Run as user "trurl"
- User=trurl
- Group=gitosis
- 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
|