WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Recursion of.dep's on boot v.s optional  (Read 4061 times)

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Recursion of.dep's on boot v.s optional
« on: January 28, 2009, 06:45:39 PM »
I created a simple extension that replaces the apache2.tce httpd.conf file so perl works with apache and has a sym link to perl from /usr/bin/perl (the standard location).  The .dep is
Code: [Select]
perl.tczl
apache2.tce
the file name is apache-perl-patch.tce
this depends on my extension loading loading after the dependencies so it can overwrite the apache httpd.conf and works great when loaded optional.  on boot it looks like my extension loads first (maybe alphabetical order) so apache2 overwrites it instead.  instead of my perl stuff executing the code shows like a text file.

using 1.1rc2
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Recursion of.dep's on boot v.s optional
« Reply #1 on: January 29, 2009, 04:26:59 AM »
TCE* loads first, alphabetically, then TCZ* loads alphabetically.
You may need to use backup/restore to load the config file, rather than put it in a tce package.
I'm not 100% clear about what you're doing, though.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Recursion of.dep's on boot v.s optional
« Reply #2 on: January 29, 2009, 08:15:06 AM »
Knowning that extenions load alphabetically first alltces followed by all tczs, You can always avoid the backup/resotore and achieve the order you wish my naming your custom patch extension accordingly.
10+ Years Contributing to Linux Open Source Projects.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Recursion of.dep's on boot v.s optional
« Reply #3 on: January 29, 2009, 05:30:06 PM »
A quick check in tc-config shows that there is a gettceapps() function to load extensions on bootup. I see what you mean: the extensions are loaded alphabetically and the .dep file is not consulted.

It would be a nice feature to loop through the .dep file, verify the existence of the dependencies, and then recursively load them. If I get time, I may draft some code to do that.
« Last Edit: January 29, 2009, 05:32:22 PM by danielibarnes »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Recursion of.dep's on boot v.s optional
« Reply #4 on: January 29, 2009, 08:19:42 PM »
I purposely avoided it at boot because it occurs at download time (appbrowser) and optional loading.
I did not want to further slow the boot process.
10+ Years Contributing to Linux Open Source Projects.