[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#727708: tech-ctte: Decide which init system to default to in Debian.



On Mon, Dec 30, 2013 at 02:03:22 -0800, Steve Langasek wrote:
> The upstart "session init" runs as the user, not as root.
Note that a session init can run as root ("sudo init --user") but yes,
conventionally they are run as non-priv users.

> I'm not sure if
> upstart as a user session has any dependencies on upstart being PID 1.
> Cc:ing James, who would know better - James, do you know if upstart session
> init works on non-upstart systems?
I've got a Session Init running fine on Wheezy with SysVinit as PID 1.
To do this:

1) sudo apt-get install libnih1
2) sudo apt-get -y build-dep upstart
3) Download an upstart release (or branch the code from lp:upstart).
4) Unpack.
5) autoreconf -fi && ./configure && make
6) Manually install the following:

util/initctl from the build tree as /sbin/initctl
init/init from the build tree as /sbin/session-init.

7) Setup a few basics and create a single job to start a terminal (no WM :)

mkdir -p ~/.config/upstart
mkdir -p ~/.cache/upstart
cat >>~/.xsession<<EOT
XDG_RUNTIME_DIR=/some/where
export XDG_RUNTIME_DIR
mkdir -p "$XDG_RUNTIME_DIR"
exec /sbin/session-init --user
EOT
chmod 755 ~/.xsession

cat >>~/.config/upstart/terminal.conf<<EOT
start on startup
exec gnome-terminal
EOT

8) Login.


Kind regards,

James.
--
James Hunt
____________________________________
#upstart on freenode
http://upstart.ubuntu.com/cookbook
https://lists.ubuntu.com/mailman/listinfo/upstart-devel


Reply to: