mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
47 lines
1.1 KiB
Desktop File
47 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=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]
|
|
User=gitea
|
|
Group=gitea
|
|
Type=simple
|
|
WorkingDirectory=~
|
|
RuntimeDirectory=gitea
|
|
LogsDirectory=gitea
|
|
StateDirectory=gitea
|
|
Environment=USER=gitea HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea
|
|
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
|
Restart=always
|
|
RestartSec=2s
|
|
CapabilityBoundingSet=
|
|
NoNewPrivileges=True
|
|
#SecureBits=noroot-locked
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/etc/gitea/app.ini
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
PrivateUsers=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|