File obs-git-explorer.service of Package obs-git-explorer
[Unit] Description=OBS Git Explorer After=network.target [Service] Type=notify User=obsgitexplorer WorkingDirectory=/srv/obs-git-explorer Environment="OBS_LITE_CONFIG_FILE=/etc/obs-git-explorer/config.ini" ExecStart=/usr/bin/gunicorn -c /usr/lib/obs-git-explorer/gunicorn.conf.py obs_git_explorer.wsgi:app ExecReload=/bin/kill -USR2 $MAINPID Restart=on-failure # Give more time for database initialization on startup (default is 90s) TimeoutStartSec=300 # To allow binding to privileged ports (< 1024) without running as root: # 1. Uncomment the line below # 2. Configure the port in /etc/obs-git-explorer/config.ini or gunicorn.conf.py # 3. Reload systemd: systemctl daemon-reload # 4. Restart service: systemctl restart obs-git-explorer #AmbientCapabilities=CAP_NET_BIND_SERVICE # # Note: If you see "Permission denied" errors when starting the service, # it usually means the port in your config is < 1024 and this capability # is not enabled. Either enable it above or use a port >= 1024 (recommended). [Install] WantedBy=multi-user.target