ansible-role-gitea/files/gitea.service
Denis Knauf 8845621862 init
2020-09-15 16:43:53 +02:00

19 lines
447 B
Desktop File

[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