:: [DNG] Conversion script: was Forma…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Edward Bartolo
Päiväys:  
Vastaanottaja: dng
Aihe: [DNG] Conversion script: was Formail for managing digests
Dear All,

Inits need to understand unit files, give them that functionality.
That is far more efficient compared to what you are doing.

Pseudo Code:
1) check for the presence of a unit file
2) if it exists
a) branch to function to read unit file and run daemon
b) if NOT execute shell script to run daemon

Programming allows to create a configuration text file which tells an
init to be aware of the existence of unit files. This can be used to
minimize the incidence of bugs for cases where no unit files are used.
The extra functionality can be debugged in separate functions.

--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
If you cannot make abstructions about details you do not understand
the concepts underlying them.