вот, короче идея которую я щас не в настроении реализовывать. супервизор типа блюпилла, читает и выполняет заклинания, в которых в произвольной форме описаны все параметры, типа:

In the name of nogroup, the mighty creatures who dwell inside the Earth
In the name of nobody, the colossal master of the Skies
The heritage at /var/run/exampled.pid awaits your return untouched
With your flaming sword shall you defend the weak
With your black shield shall you defeat the enemies
Arise, oh /usr/local/bin/exampled!
Arise, oh ghostly shadow of a dead knight!


основная проблема тут -- органично вшить параметры программы, окружение, условия перезапуска и прочую хунту.

URL записи