Thanks for your suggestions.
The key point is the timing to launch the daemon.
I tried 1st way and found the my
script in /etc/X11/xinit/xinitrc.d/ crashed. But it can work if I manually
launch it after X is up.
It seems the script in /xinitrc.d/ is launched before X is totally up.
I don't want the daemon to talk with X, is there a easier way?

2009/10/27 Wang, Jing J <[email protected]>

> It is not easy if your daemon will talk with X. Not clear about your usage
> model, two workarounds for your reference. Pleas note, both potentially has
> security issue.
> 1. Update user to "root" in /etc/sysconfig/uxlaunch. It makes X startup
> with root. Put your daemon script in /etc/X11/xinit/xinitrc.d/.
> 2. sudo to launch your daemon after modify default user as NOPASSWD in
> /etc/sudoer
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Bob Lin
> Sent: 2009年10月27日 11:58
> To: [email protected]
> Subject: [Moblin Dev] How to launch daemon automaticly?
>
> Hi All
>
> I'd like to launch a daemon program as root after X window is up. What
> should i do?
> Besides, there must be a way to login as root in runlevel 5, what should i
> do ?
>
> Thansk,
> Bob
> _______________________________________________
> Moblin dev Mailing List
> [email protected]
>
> To manage or unsubscribe from this mailing list visit:
> http://lists.moblin.org/listinfo/dev or your user account on
> http://moblin.org once logged in.
>
> For more information on the Moblin Developer Mailing lists visit:
> http://moblin.org/community/mailing-lists
>
_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to