2018-10-30 14:50:33 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Forge Gitea (Git with a cup of tea)
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
|
|
|
After=mysqld.service
|
|
|
|
After=postgresql.service
|
|
|
|
After=memcached.service
|
|
|
|
After=redis.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
#LimitMEMLOCK=infinity
|
|
|
|
#LimitNOFILE=65535
|
|
|
|
RestartSec=2s
|
|
|
|
Type=simple
|
|
|
|
User=git
|
|
|
|
Group=gitservice
|
2018-10-30 15:04:55 +01:00
|
|
|
WorkingDirectory=/srv/forge/gitea/bin/
|
2018-10-30 15:22:45 +01:00
|
|
|
ExecStart=/srv/forge/gitea/bin/gitea web -c /etc/gitea/conf/app.ini
|
2018-10-30 14:50:33 +01:00
|
|
|
Restart=always
|
|
|
|
Environment=USER=git HOME=/srv/forge/git
|
|
|
|
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
|
|
#AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|