rtprio + su - doesn't work
    Oliver Fromme 
    olli at lurza.secnetix.de
       
    Fri Aug 22 14:34:37 UTC 2008
    
    
  
Wojciech Puchar <> wrote:
 > /usr/sbin/rtprio 31 /usr/bin/su centrala -c \
 > "/usr/local/bin/asterisk -C /centrala/etc/asterisk.conf"
 > 
 > asterisk is started, but without realtime priority.
I'm not sure what's wrong, but it works fine for me:
# rtprio 31 su -m nobody -c 'id; /usr/sbin/rtprio'
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
rtprio: realtime priority 31
# 
This is on 7-stable (a few months old, though).
Best regards
   Oliver
-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd
"I have stopped reading Stephen King novels.
Now I just read C code instead."
        -- Richard A. O'Keefe
    
    
More information about the freebsd-questions
mailing list