ansible-role-gitea/files/gitea.service

20 lines
447 B
SYSTEMD
Raw Normal View History

2020-09-15 16:43:53 +02:00
[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