19 lines
402 B
Plaintext
19 lines
402 B
Plaintext
|
[Unit]
|
||
|
Description=Gitea (Git with a cup of tea)
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
Requires=postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
RestartSec=2s
|
||
|
Type=simple
|
||
|
User={{ gitea_user }}
|
||
|
Group={{ gitea_user }}
|
||
|
WorkingDirectory=/opt/gitea/
|
||
|
ExecStart=/opt/gitea/gitea web
|
||
|
Restart=always
|
||
|
Environment=USER={{ gitea_user }} HOME=/home/{{ gitea_user }} GITEA_WORK_DIR=/opt/gitea/
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|