Ah well, I never even saw there was a sudoers file on my machine... 

I got the plugin->inetd daemon to work, by backgrounding the nc
connection in the srvrpowerctrl_helper.sh script. I updated my prior
post.
So it works, now. And right away, I see I should have added a "block"
button to the Applescript dialog, because now every minute -I'm not
playing anything from the mac- the stupid popup asks me if I want to
cancel suspend %-) (and it also seems to act strangely when it pops-up
and the user is already typing something. Hopefully it kind of explodes
and does not catch the input for its "Do it!" button.)

Most of what I have posted has the same value inetd server or not. Feel
free to scavenge anything you want from it.
Initially I wanted the server to run permanently, and register with
IOKit as a dummy hardware driver. From there I could have received "get
ready to sleep/shutdown/..." events coming from the OS, and either fight
against it or let go, according to what the plugin/SC would have wanted.
But AFAIK the IOKit thing is Objective-C, there are no perl bindings nor
shell utils, so I thought a transient (inetd), passive server was
enough.
I believe the same OS/SC link can be obtained under linux on machines
that use d-bus (most desktop do I think.)

As for your RFC, I think I like the simplification you offer in your
1st proposal. I don't use sleep playing much. I don't use EOD at all, so
I won't try to have an opinion.


-- 
epoch1970
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to