Re: Spawn a screen session from launch daemon
Re: Spawn a screen session from launch daemon
- Subject: Re: Spawn a screen session from launch daemon
- From: Samer Abdallah <email@hidden>
- Date: Mon, 22 Feb 2010 10:09:36 +0000
Hello,
I would like to bump this question. Until recently I was using
Tiger on an old Powerbook, and I used to start a screen session
from my /etc/rc.local:
/etc/rc.local:
# ...
sudo -u samer bash -l /Users/samer/.bootrc
# ...
~/.bootrc:
HOSTNAME=<hostname> SHELL=/bin/bash TERM=xterm-color DISPLAY=:0 \
screen -U -d -m -h 6000
Now I've just got a MacBook running Snow Leopard and this doesn't work
any more, and evidently starting screen using a launch daemon won't work
either.
Best regards,
Samer
> Hello,
>
> I have written a script to be run by launchd when the WindowServer process runs. It starts a detached screen session in which gdb is attached to the WindowServer.
>
> (This isn't for anything production, obviously.)
>
>
> Unfortunately, launchd throws an error when I try to use screen:
>
> Bug: launchd_core_logic.c:8250 (23932):0
> Switching sessions is not allowed in the system Mach bootstrap.
> _vprocmgr_switch_to_session(): kr = 0x44c
>
> What is the reasoning behind this? Is there a workaround?
>
>
> Regards,
> Ryan Govostes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden