Gentoo Archives: gentoo-user

From: "Boyd Stephen Smith Jr." <bss03@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] program autostart from another user
Date: Mon, 30 Jul 2007 11:38:52
Message-Id: 200707300602.35876.bss03@volumehost.net
In Reply to: [gentoo-user] program autostart from another user by "Aleksey V. Kunitskiy"
1 On Monday 30 July 2007 03:29:36 am Aleksey V. Kunitskiy wrote:
2 > I want to auto start some programs on startup, using init
3 > My local.start looks like:
4 > sudo -u user_name screen program
5 >
6 > My question is - is it the right way?
7
8 You don't have to use screen, but that should work.
9
10 > How can I attach next program to existing screen session (by creating new
11 > buffer in screen session)?
12
13 Reading over the manpage, something like this (but "sudo -u"d) should work:
14 # Create a new screen session, detached, with name
15 screen -d -m -S system-autostart-foo
16 # In a named window in that session, run bar
17 screen -S system-autostart-foo -X at cmd-bar# bar
18 # In a named window in that session, run baz
19 screen -S system-autostart-foo -X at cmd-baz# baz
20
21 But, I've never tried to use screen in this way, no this is just a guess. I'm
22 sure it's possible to use screen the way you want.
23
24 --
25 Boyd Stephen Smith Jr.                     ,= ,-_-. =.
26 bss03@××××××××××.net                      ((_/)o o(\_))
27 ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-'
28 http://iguanasuicide.org/                      \_/