After a cursory scan of the Gentoo repository, I've noticed an
overabundance of start_stop_daemon_args being declared in scripts committed.
I would like to draw attention and see if we can clean these up together.
On 2021-12-01 21:02:20, Brian Evans wrote:
After a cursory scan of the Gentoo repository, I've noticed an overabundance of start_stop_daemon_args being declared in scripts committed.
I would like to draw attention and see if we can clean these up together.
A lot of this is covered in the service script guide:
https://github.com/OpenRC/openrc/blob/master/service-script-guide.md
There's a 2.5-year old bug to mention it in the devmanual:
https://bugs.gentoo.org/684354
Can we automate any of it? Emit QA warnings? etc.
On 2021-12-02 08:12:55, Alec Warner wrote:
Can we automate any of it? Emit QA warnings? etc.
I would love to be proven wrong, but I don't think so. We have two
main problems. First, The service scripts are POSIX sh, which is
better than bash, but still can't easily be parsed for semantic
information.
Second, if the daemon is "special," then the service script is
justified in being similarly unconventional. Unusual runtime behavior
can't be statically detected, and I doubt that the well-behaved
portion of daemons in the tree is large enough that we can warn about
every script that smells a little bit fishy.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 84:02:55 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,599 |
Posted today: | 1 |