[Unit] Description=cachepot scheduler After=suspend.target After=hibernate.target After=hybrid-sleep.target After=network.target Requires=network.target RequiresMountsFor=/mnt/cache-dir [Service] Type=simple Restart=always RestartSec=20s LimitNOFILE=5000 TasksMax=1000 User=root Group=root Environment=CACHEPOT_NO_DAEMON=1 Environment=RUST_LOG=cachepot=trace,cachepot-dist=trace ExecStartPre=-/usr/bin/mkdir /mnt/cache-dir ExecStart=/usr/local/bin/cachepot-dist scheduler --config /etc/cachepot/scheduler.conf SELinuxContext=system_u:object_r:unreserved_port_t:s0 [Install] WantedBy=multi-user.target