20 lines
447 B
SYSTEMD
20 lines
447 B
SYSTEMD
|
[Unit]
|
||
|
Description=Gitea
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
After=mariadb.service mysqld.service postgresql.service memcached.service redis.service
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|
||
|
[Service]
|
||
|
PIDFile=/run/gitea/gitea.pid
|
||
|
User=git
|
||
|
Group=git
|
||
|
PermissionsStartOnly=true
|
||
|
WorkingDirectory=/srv/gitea
|
||
|
ExecStartPre=/usr/bin/install -o git -g git -d /run/gitea/
|
||
|
ExecStart=/srv/gitea/gitea web
|
||
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
||
|
PrivateTmp=true
|