> The primary problem with this is: How should it find the according
> init.d script or .service file if not via the package's file list?

I think that if the process isn't packaged, it was installed by the user,
hence he can find out by himself how to restart it.

I've spent one hour on a fix for 0.68, I'm not a Python programmer, but
that will do what I wished it would. The idea is to list all programs in
programsNotFoundInPackages, then remove each program found in a package.
When done, list all remaining programsNotFoundInPackages, add these to a
fake package (nonPackagedName). At the end, show all these packages in a
«Non-packaged processes:» output.

Can someone take a look at it? For now, as I still keep my Debian in
stable, I'll use my own 0.68 patched version in a separate file, ignoring
the debian-goodies package.

Thanks,
Yvan.
# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
158d157
<     programsNotFoundInPackages = {}
162d160
<         programsNotFoundInPackages.setdefault(process.program, False)
177d174
<     nonPackagedName = 'fake-package-for-non-packaged-processes'
213d209
<                  programsNotFoundInPackages.pop(program)
223,228d218
<     for program in programsNotFoundInPackages:
<         packages.setdefault(nonPackagedName,Package(nonPackagedName))
<         packages[nonPackagedName].processes.extend(programs[program])
<         if verbose:
<             print("[DEBUG] Program not found in any package, attaching to non-packaged fake package: %s" % (program))
< 
248,250d237
<         if (package.name == nonPackagedName):
<             continue
< 
328,330d314
<         if (package.name == nonPackagedName):
<             print('Non-packaged processes:')
<         else:
332d315
< 
414d396
<             process.found = False

Reply via email to