* [gentoo-user] program autostart from another user
@ 2007-07-30 8:29 Aleksey V. Kunitskiy
2007-07-30 9:58 ` Abraham Marín Pérez
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-30 8:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
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
--
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user
2007-07-30 8:29 [gentoo-user] program autostart from another user Aleksey V. Kunitskiy
@ 2007-07-30 9:58 ` Abraham Marín Pérez
2007-07-30 10:25 ` Aleksey V. Kunitskiy
2007-07-30 11:02 ` [gentoo-user] program autostart from another user Boyd Stephen Smith Jr.
2007-07-31 9:59 ` [gentoo-user] " Aleksey V. Kunitskiy
2 siblings, 1 reply; 10+ messages in thread
From: Abraham Marín Pérez @ 2007-07-30 9:58 UTC (permalink / raw
To: gentoo-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
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user
2007-07-30 9:58 ` Abraham Marín Pérez
@ 2007-07-30 10:25 ` Aleksey V. Kunitskiy
2007-07-30 13:07 ` [gentoo-user] program autostart from another user [OT] Abraham Marín Pérez
0 siblings, 1 reply; 10+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-30 10:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 378 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user
2007-07-30 8:29 [gentoo-user] program autostart from another user Aleksey V. Kunitskiy
2007-07-30 9:58 ` Abraham Marín Pérez
@ 2007-07-30 11:02 ` Boyd Stephen Smith Jr.
2007-07-31 9:59 ` [gentoo-user] " Aleksey V. Kunitskiy
2 siblings, 0 replies; 10+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-07-30 11:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]
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 -u"d) 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. ,= ,-_-. =.
bss03@volumehost.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user [OT]
2007-07-30 10:25 ` Aleksey V. Kunitskiy
@ 2007-07-30 13:07 ` Abraham Marín Pérez
2007-07-30 15:26 ` Aleksey V. Kunitskiy
0 siblings, 1 reply; 10+ messages in thread
From: Abraham Marín Pérez @ 2007-07-30 13:07 UTC (permalink / raw
To: gentoo-user
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
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user [OT]
2007-07-30 13:07 ` [gentoo-user] program autostart from another user [OT] Abraham Marín Pérez
@ 2007-07-30 15:26 ` Aleksey V. Kunitskiy
2007-07-30 15:55 ` Mark Shields
2007-07-30 16:17 ` [gentoo-user] " Uwe Thiem
0 siblings, 2 replies; 10+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-30 15:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user [OT]
2007-07-30 15:26 ` Aleksey V. Kunitskiy
@ 2007-07-30 15:55 ` Mark Shields
[not found] ` <200707301913.58802.alexey.kv@gmail.com>
2007-07-30 16:17 ` [gentoo-user] " Uwe Thiem
1 sibling, 1 reply; 10+ messages in thread
From: Mark Shields @ 2007-07-30 15:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
On 7/30/07, Aleksey V. Kunitskiy <alexey.kv@gmail.com> 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
[-- Attachment #2: Type: text/html, Size: 864 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] program autostart from another user [OT]
2007-07-30 15:26 ` Aleksey V. Kunitskiy
2007-07-30 15:55 ` Mark Shields
@ 2007-07-30 16:17 ` Uwe Thiem
1 sibling, 0 replies; 10+ messages in thread
From: Uwe Thiem @ 2007-07-30 16:17 UTC (permalink / raw
To: gentoo-user
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!
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: program autostart from another user [OT]
[not found] ` <200707301913.58802.alexey.kv@gmail.com>
@ 2007-07-30 21:11 ` Anno v. Heimburg
0 siblings, 0 replies; 10+ messages in thread
From: Anno v. Heimburg @ 2007-07-30 21:11 UTC (permalink / raw
To: gentoo-user
Aleksey V. Kunitskiy wrote:
> I'm confused - is the local.[start,stop] the same as start-stop-daemon? or
> not?
No, the suggestion is to use start-stop-daemon instead of sudo. man
start-stop-daemon for more information.
You will still have to call start-stop-daemon from an init script for both
starting and stopping. Either use local.[start|stop] or roll your own init
script, using any existing init script as a template.
Anno.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: program autostart from another user
2007-07-30 8:29 [gentoo-user] program autostart from another user Aleksey V. Kunitskiy
2007-07-30 9:58 ` Abraham Marín Pérez
2007-07-30 11:02 ` [gentoo-user] program autostart from another user Boyd Stephen Smith Jr.
@ 2007-07-31 9:59 ` Aleksey V. Kunitskiy
2 siblings, 0 replies; 10+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-31 9:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 135 bytes --]
Thanks all for suggestions
--
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-07-31 10:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 8:29 [gentoo-user] program autostart from another user Aleksey V. Kunitskiy
2007-07-30 9:58 ` Abraham Marín Pérez
2007-07-30 10:25 ` Aleksey V. Kunitskiy
2007-07-30 13:07 ` [gentoo-user] program autostart from another user [OT] Abraham Marín Pérez
2007-07-30 15:26 ` Aleksey V. Kunitskiy
2007-07-30 15:55 ` Mark Shields
[not found] ` <200707301913.58802.alexey.kv@gmail.com>
2007-07-30 21:11 ` [gentoo-user] " Anno v. Heimburg
2007-07-30 16:17 ` [gentoo-user] " Uwe Thiem
2007-07-30 11:02 ` [gentoo-user] program autostart from another user Boyd Stephen Smith Jr.
2007-07-31 9:59 ` [gentoo-user] " Aleksey V. Kunitskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox