Re: [gentoo-user] program autostart from another user [OT]
On Monday 30 July 2007 17:55:37 Mark Shields wrote: I see... Just curious, why would you need a program to be executed by a user who isn't logged in? The only reason I can imagine is a daemon, server o similar; Yes, this is a server :). Use the start-stop-daemon like he suggested. This has documentation in the handbook... http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2chap=4#doc_chap4 -- Bo Andresen signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] program autostart from another user
Maybe this doesn't exactly meet your needs but, have you tried to add those program to ~/.bashrc? That way the program will be executed for your user. Abraham Aleksey V. Kunitskiy escribió: Hi, I want to auto start some programs on startup, using init My local.start looks like: sudo -u user_name screen program My question is - is it the right way? How can I attach next program to existing screen session (by creating new buffer in screen session)? Thanks -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] program autostart from another user
On Monday 30 July 2007 12:58, Abraham Marín Pérez wrote: Maybe this doesn't exactly meet your needs but, have you tried to add those program to ~/.bashrc? That way the program will be executed for your user. I need startup program without user be logged in. -- best regards, Aleksey V. Kunitskiy my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc pgpT5k2gmEnbk.pgp Description: PGP signature
Re: [gentoo-user] program autostart from another user
On Monday 30 July 2007 03:29:36 am Aleksey V. Kunitskiy wrote: I want to auto start some programs on startup, using init My local.start looks like: sudo -u user_name screen program My question is - is it the right way? You don't have to use screen, but that should work. How can I attach next program to existing screen session (by creating new buffer in screen session)? Reading over the manpage, something like this (but sudo -ud) should work: # Create a new screen session, detached, with name screen -d -m -S system-autostart-foo # In a named window in that session, run bar screen -S system-autostart-foo -X at cmd-bar# bar # In a named window in that session, run baz screen -S system-autostart-foo -X at cmd-baz# baz But, I've never tried to use screen in this way, no this is just a guess. I'm sure it's possible to use screen the way you want. -- Boyd Stephen Smith Jr. ,= ,-_-. =. [EMAIL PROTECTED] ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.org/ \_/ pgpFwKiWm5eij.pgp Description: PGP signature
Re: [gentoo-user] program autostart from another user [OT]
Aleksey V. Kunitskiy escribió: On Monday 30 July 2007 12:58, Abraham Marín Pérez wrote: Maybe this doesn't exactly meet your needs but, have you tried to add those program to ~/.bashrc? That way the program will be executed for your user. I need startup program without user be logged in. I see... Just curious, why would you need a program to be executed by a user who isn't logged in? The only reason I can imagine is a daemon, server o similar; in that case I'd use start-stop-daemon. Regards, Abraham -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] program autostart from another user [OT]
On Monday 30 July 2007 16:07, Abraham Marín Pérez wrote: I see... Just curious, why would you need a program to be executed by a user who isn't logged in? The only reason I can imagine is a daemon, server o similar; Yes, this is a server :). -- best regards, Aleksey V. Kunitskiy my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc pgproz2E2lg4j.pgp Description: PGP signature
Re: [gentoo-user] program autostart from another user [OT]
On 7/30/07, Aleksey V. Kunitskiy [EMAIL PROTECTED] wrote: On Monday 30 July 2007 16:07, Abraham Marín Pérez wrote: I see... Just curious, why would you need a program to be executed by a user who isn't logged in? The only reason I can imagine is a daemon, server o similar; Yes, this is a server :). -- best regards, Aleksey V. Kunitskiy my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc Use the start-stop-daemon like he suggested. -- - Mark Shields
Re: [gentoo-user] program autostart from another user [OT]
On 30 July 2007, Aleksey V. Kunitskiy wrote: On Monday 30 July 2007 16:07, Abraham Marín Pérez wrote: I see... Just curious, why would you need a program to be executed by a user who isn't logged in? The only reason I can imagine is a daemon, server o similar; Yes, this is a server :). So write a start-stop-script for /etc/init.d and add it to your runlevel. Anything else is a dirty hack. Uwe -- Jethro Tull: Maybe, I am not done yet! -- [EMAIL PROTECTED] mailing list