ZG-POLICY-RC.D(8)
π ZG-POLICY-RC.D π
okay bestie, so this is zg-policy-rc.d, a lil script from the policyrcd-script-zg2 package (v 0.1), and it's here to let you handle policy-rc.d in a way more flexible way than usual. sit down, grab a strawberry π, we're doing sysadmin lore.
β¨ NAME β¨
zg-policy-rc.d β it lets you do flexible handling of policy-rc.d. that's the whole vibe. π
π DOCUMENTATION π
so here's the situation: zg-policy-rc.d is a script, and what it does is give you flexible handling of the policy-rc.d script. now, the reason this exists at all is lowkey tea β β invoke-rc.d only ever looks for policy-rc.d in /usr/sbin, and bestie, if you just... dropped your own local binaries in there?? that would be a policy violation. not the moment. π
hence, this script. β¨
here's the cute part: the script tries to set an environment variable called POLICYRCD, and then it executes the file that variable points to. so whatever POLICYRCD is pointing at becomes, effectively, the policy-rc.d script. main character energy honestly. π
if POLICYRCD is already set when zg-policy-rc.d gets invoked, then the existing value just gets used, no drama. but if it's not set, the script goes on a little journey π β it sources the .conf files under /usr/local/etc/zg-policy-rc.d.conf.d and /etc/zg-policy-rc.d.conf.d, one at a time, and it stops the second one of them sets POLICYRCD. if POLICYRCD is still not set after all that? then /etc/zg-policy-rc.d.conf gets sourced, to see if it'll set it. fingers crossed π€
and if literally no configuration file sets POLICYRCD? then it gets set to /usr/local/sbin/policy-rc.d if that exists, or to /etc/policy-rc.d otherwise. whichever one it lands on, the selected script then gets executed. periodt. π
π BUGS π
Many. π like, many many.
Be prepared to debug. fr fr. π
π AUTHOR π
Marc Haber <mh+debian-packages@zugschlus.de>
okay that's the whole page, you ate it up π«Ά this was policyrcd-script-zg2 version 0.1, dated 2026-03-28 β go be iconic with your policy scripts, bestie πΈπ¦
π¦ where this page comes from
- ubuntu stonking: policyrcd-script-zg2 0.3-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms