[Box-Admins] Re: [squeak-dev] cogspurlinuxht under daemontools

Eliot Miranda eliot.miranda at gmail.com
Sat Jul 11 21:30:05 UTC 2015

Hi Chris, 

    I really know very little about this.  I don't understand the mechanism.  But I'm told that the limits file takes effect on login.  i.e. if the file is created while a user is logged in it won't take effect for that user until that user logs out and logs back in again and only applies to those sessions that logged in once the file had been created.  I /dont/ know whether su sets up a new session.  i should try that experiment.  

So perhaps you could have daemon tools run login or su to create a new session and see if the ht version can be run by daemontools in that session.  Presumably daemons launched at boot aren't in the right state.  (What an absurdity they've invented here).

Eliot (phone)

On Jul 11, 2015, at 1:23 PM, Chris Muller <asqueaker at gmail.com> wrote:

> Hi Levente, I'm still having the same trouble with this even after
> rebooting the server.  I'd like to be able to run with the "HT" VM,
> but I think I may be wasting my time because its not possible at all
> [1].  Maybe there's a way around that, I don't know..
> Which is why I'd like to ask:  Can you confirm that you have or are
> successfully running the HT vm when the effective UID of the process
> does not match the UID of the user that invoked it (as when
> daemontools, running under root, would use "setuidgid" to run the VM)?
> Thanks.
> [1] The manpage referred to earlier says:  "Subject to the same rules,
> another unprivileged process can also make these changes, as long as
> the effective user ID of the process making the change matches the
> real or effective user ID of the target process."
> On Fri, Jun 19, 2015 at 8:16 AM, Levente Uzonyi <leves at elte.hu> wrote:
>> Try restarting the daemontools daemon. Changes to the limits affect only the
>> processes started after the change.
>> Levente
>> On Thu, 18 Jun 2015, Chris Muller wrote:
>>> I am having trouble using the "HT" version of the Spur VM under
>>> daemontools.  When the daemon attempts to launch the image it gets the
>>> familiar pthread error:
>>> pthread_setschedparam failed: Operation not permitted
>>> Read e.g. http://www.mirandabanda.org/files/Cog/VM/VM.r3370/README.3370
>>> however, I *definitely* have my /etc/security/limits.d/squeak.conf
>>> file set up as instructed (been working fine for ages), and in fact
>>> I'm able to run the same image with the same startup script under the
>>> same uidgid manually.  (e.g., I'm able to cut-n-paste the line from my
>>> "run" script into the terminal and it works fine...)
>>>    exec setuidgid magma /usr/local/bin/spur -vm display=none
>>> server-spur.image $DIR/run.st `cat port`
>>> ... but when daemontools runs it, gets the pthread error.  Weird!  Any
>>> ideas?

More information about the Box-Admins mailing list