eclipse/etc/eclipse-gitcache-maintenanc...

22 lines
568 B
SYSTEMD

[Unit]
Description=Optimize Git cache data
[Service]
User=eclipse
Group=eclipse
Type=oneshot
ExecStart=@bindir@/eclipse-gitcache --cache-dir=@localstatedir@/cache/eclipse/gitcache.git maintenance -- --schedule=%i
# The following is from the .service file generated by `git
# maintenance start` from Git 2.43.0.
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_VSOCK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service