[Unit] Description=Generate hoogle index Documentation=man:hoogle(1) https://github.com/ndmitchell/hoogle [Service] Type=oneshot EnvironmentFile=-/etc/default/hoogle ExecStart=/usr/libexec/hoogle-generate.bash $HOOGLE_GENERATE_ARGS User=hoogle Group=hoogle StateDirectory=hoogle # Security settings for systemd running as root, optional but recommended to improve security. You # can disable individual settings if they cause problems for your use case. For more details, see # the systemd manual: https://www.freedesktop.org/software/systemd/man/systemd.exec.html LockPersonality=true # You can try setting this to "yes" for improved security MemoryDenyWriteExecute=no NoNewPrivileges=yes PrivateDevices=yes PrivateTmp=yes ProtectClock=yes ProtectControlGroups=yes ProtectHostname=yes ProtectKernelLogs=yes ProtectKernelModules=yes ProtectKernelTunables=yes RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes SystemCallArchitectures=native SystemCallFilter=@system-service SystemCallErrorNumber=EPERM # Restrict write access # Change to 'ProtectSystem=strict' and uncomment 'ProtectHome' to make the whole file # system read-only be default and uncomment 'ReadWritePaths' for the required write access. # Add local repositroy paths to the list of 'ReadWritePaths' like '-/mnt/my_backup_drive'. ProtectSystem=full ProtectHome=true # ReadWritePaths= CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_RAW # Lower CPU and I/O priority. #Nice=19 #CPUSchedulingPolicy=batch #IOSchedulingClass=best-effort #IOSchedulingPriority=7 #IOWeight=100