Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1313  / 1 Year ago, mon, november 21, 2022, 3:09:40

I have noticed some config files having a prefix. E.g. Inside my
/etc/php5/cli/conf.d:




  • 05-opcache.ini

  • 10-pdo.ini

  • 20-curl.ini

  • ...



Could someone explain this? I am thinking something along the lines of file permissions or list order.



Thanks!


More From » permissions

 Answers
0

It's to do with order of inclusion (list order).



The config snippets will be iterated over one at a time to produce the full set of configuration options for the application.



By adding the numbers at the beginning of each filename it allows shell scripts (and other types of programs) to easily grab the directory listing and then process the scripts in the order you want.



Some other examples:



/etc/apt/apt.conf.d/
/etc/systcl.d/
/etc/rc*.d/
/etc/fonts/conf.avail/
/etc/fonts/conf.d/
/etc/udev/rules.d/


For some daemons the file permissions and/or the file extension may also determine if the file is included.


[#22088] Monday, November 21, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
huovie

Total Points: 234
Total Questions: 99
Total Answers: 105

Location: Central African Republic
Member since Sun, Feb 26, 2023
1 Year ago
huovie questions
Mon, Aug 2, 21, 01:46, 3 Years ago
Thu, Feb 2, 23, 10:58, 1 Year ago
Thu, Oct 21, 21, 08:55, 3 Years ago
Sun, Dec 5, 21, 23:57, 2 Years ago
;