Based on https://github.com/systemd/systemd/issues/7820, this adds support for quota enforcement to State, Cache, and Log exec directories. * Add new directives, StateDirectoryQuota=, CacheDirectoryQuota=, and LogDirectoryQuota=, to define quotas as percentages (hard limits for blocks and inodes) or absolute values (hard limits for blocks only). * Add new directives, StateDirectoryQuotaAccounting=, CacheDirectoryQuotaAccounting= and LogDirectoryQuotaAccounting= to keep track of storage quotas but not enforce them (effectively just assigning a project ID to defined exec directories). Example: ``` StateDirectory=quotadir StateDirectoryQuota=1% Jan 06 22:55:46 abeltran: Storage quotas set for /var/lib/private/quotadir. Block limit = 2639404, inode limit = 671088 root@abeltran:/var/lib/private# lsattr -pR 3153000189 --------------e----P-- ./quotadir root@abeltran:/var/lib/private# repquota -P /datadrive *** Report for project quotas on device /dev/sdc1 Block grace time: 7days; Inode grace time: 7days Block limits File limits Project used soft hard grace used soft hard grace ---------------------------------------------------------------------- #0 -- 213200 0 0 4086 0 0 #3153000189 -- 2639404 0 2639404 2 0 671088 ```
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS
