19 lines
378 B
SYSTEMD
19 lines
378 B
SYSTEMD
|
[Unit]
|
||
|
Description=${app_name} at ${domain}
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
Requires=postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
RestartSec=2s
|
||
|
Type=simple
|
||
|
User=git
|
||
|
Group=git
|
||
|
WorkingDirectory=/var/lib/gitea/
|
||
|
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
|
||
|
Restart=always
|
||
|
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|