Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 16:34:29 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-questions@FreeBSD.ORG, wojtek@wojtek.tensor.gdynia.pl
Subject:   Re: rtprio + su - doesn't work
Message-ID:  <200808221434.m7MEYTRc063711@lurza.secnetix.de>
In-Reply-To: <20080821230022.W3189@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808221434.m7MEYTRc063711>