[BusyBox 0001063]: Add support for --nicelevel option to start-stop-daemon

bugs at busybox.net bugs at busybox.net
Mon Oct 9 18:48:45 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1063 
====================================================================== 
Reported By:                pyret
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1063
Category:                   New Features
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-05-2006 00:39 PDT
Last Modified:              10-09-2006 11:48 PDT
====================================================================== 
Summary:                    Add support for --nicelevel option to
start-stop-daemon
Description: 
The Debian version of start-stop-daemon has an option to adjust the nice
level of the process started. It would be nice if busybox
start-stop-daemon had the same option.

I have written a patch that adds this option, I'll attach it here.

====================================================================== 

---------------------------------------------------------------------- 
 vda - 10-07-06 09:22  
---------------------------------------------------------------------- 
Maybe use this?

nice -n N start-stop-daemon ... 

---------------------------------------------------------------------- 
 pyret - 10-08-06 09:00  
---------------------------------------------------------------------- 
Yes, nice -n works fine, I tried that. But in my case I have to be backward
compatible with an old HardHat installation, thus the patch. 

---------------------------------------------------------------------- 
 vda - 10-08-06 16:45  
---------------------------------------------------------------------- 
Patch is buggy (feeds int* to getopt32...). Fixed and applied to svn.
Please test it. 

---------------------------------------------------------------------- 
 pyret - 10-09-06 03:52  
---------------------------------------------------------------------- 
I have tried to compile the latest busybox from svn, but it fails. First,
I'm cross-compiling for powerpc, and -march=i386 is hard-coded in
Makefile.flags. After fixing that, the compilation fails with:
CC      coreutils/stty.o
coreutils/stty.c:255: warning: large integer implicitly truncated to
unsigned type
coreutils/stty.c:256: warning: large integer implicitly truncated to
unsigned type
make[1]: *** [coreutils/stty.o] Error 1
make: *** [coreutils] Error 2

I don't have time to look into this right now, I'll try to get back to
this in a week or so.

 

---------------------------------------------------------------------- 
 vda - 10-09-06 11:48  
---------------------------------------------------------------------- 
Will look into "-march=i386" problem.
The second problem is:

struct mode_info {
        const char *name;       /* Name given on command line           
*/
        char type;              /* Which structure element to change    
*/
        char flags;             /* Setting and display options          
*/
        unsigned short mask;    /* Other bits to turn off for this mode
*/
        unsigned long bits;     /* Bits to set for this mode            
*/
};

#define MI_ENTRY(N,T,F,B,M) { N, T, F, M, B }
....
#ifdef VTDLY
        MI_ENTRY("vt1",      output,      SANE_UNSET,        VT1,    
VTDLY),
        MI_ENTRY("vt0",      output,      SANE_SET,          VT0,    
VTDLY),
#endif

These are the lines. It's VT0, VT1 or VTDLY. Can you determine which,
and what value does it have? make coreutils/stty.i will help a lot. ;) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-05-06 00:39  pyret          New Issue                                    
10-05-06 00:39  pyret          Status                   new => assigned     
10-05-06 00:39  pyret          Assigned To               => BusyBox         
10-05-06 00:39  pyret          File Added: busybox-1.2.1-nicelevel.patch        
           
10-07-06 09:22  vda            Note Added: 0001692                          
10-08-06 09:00  pyret          Note Added: 0001693                          
10-08-06 16:45  vda            Note Added: 0001694                          
10-09-06 03:11  pyret          Note Added: 0001695                          
10-09-06 03:52  pyret          Note Edited: 0001695                         
10-09-06 11:48  vda            Note Added: 0001696                          
======================================================================




More information about the busybox-cvs mailing list