First, on traditional linux systems, there should be an entry in the /etc/inittab to tell the system what runlevel to start in. However in ubuntu(and all debian I think), they start in 2, and really make no distinction between 2-5. So that solution was out.
Second, since version 7.04(at least) ubuntu has been using upstart to control what is started in each runlevel(unlike debian mainstream, but possibly to be included soon) so I couldn't modify which scripts are in /etc/rc2.d/ and what their symlinks are named.
Third was the fact that lubuntu uses lxde instead of gnome, xfce or kde, but I figured it would use either gdm,kdm or xdm, but could not find a startup script for any of these in /etc/default.
So, I finally looked in /etc/init (which is where upstart places conf files) and found something called lxdm.conf. Could it be possible that they created their own display manager(or at least renamed it)? Well I opened that conf file and found this line:
stop on runlevel [016]
It can't be that easy can it? Since I was testing this on a throw-away vm, I just changed it to read [0126](using sudo of course) and rebooted with crossed fingers.It worked as I had wanted.
I think the real issue here is that there isn't only 1 way to change this behavior, but different ways for different distro's. From the look of things, it is likely that the final solution may be the way that they are all going, but it sure seems as if it's quite divergent from the 'old way of doing things'
No comments:
Post a Comment