Hello.
rc.local not running when system boot.
But i run it hands - he run commands.
Whats problem?
Because it’s boot.local on SuSE.
I chek it. This not work…
Oh it definitely works.
/etc/init.d/boot.local would be the file.
Problem exists
up
/etc/init.d/boot.local
script with local commands to be executed from init on system startup
Here you should add things, that should happen directly after booting
before we’re going to the first run level.
Assuming you’ve followed Chrysantine’s advice, can you post your script thats not working? Maybe explain with a little more detail what you are trying to achieve…
I want to rc.local start these commands at startup.
rc.local code:
This script will be executed after all the other init scripts.
You can put your own initialization stuff in here if you don’t
want to do the full Sys V style init stuff.
alias web=‘cd /path/to/directory’
/usr/bin/thunderbird
Unless I’m mistaken that will never begin as x hasn’t started.
Aliases should go in .bashrc not rc.local, also use the autostart of the DE to start TBird.
Unless rc.local must be run the commands!!!
But thanks for the aliases.
Mmm if your saying rc.local must run a X app it is impossible and the wrong place. You can not run an app that needs X without X. You need a commandline mail client for that to work.
So… How I can run X application on startup for all users ?
Look into /etc/skel then either .xinitrc or DE autostart as mentioned earlier.
rc.local not need ?
Why did he then ?
Do I have to do the reading of the man pages for you then?
Right
rc.local(Or whatever the Suse one is called) starts after the runlevel is reached, and generally before X so anything that needs X doesn’t go here…
Next we load bashrc so we get any bits we want for bash shell, rarely dependant on X as it will often start X less…
Next we start the DE now on some distro’s this will use .xinitrc some like Suse not but it will use .xinitrc from what I can see(Not sure only have 11.2 to go on which has .xinitrc.template)
Now it will read the DE autostart files…
Finally we arrive at X with DE… Now what defines what a new user has /etc/skel/
So now I’ve done the hard work and spoon fed you the answer…
Thanks for the explanation. It cleared a couple doubts I had.
It’s curious how the OP keeps referring to rc.local that doesn’t exist in Opensuse, instead of boot.local, even after being told so.
Just a little additional comment:
The commands in /etc/rc.local are run after while /etc/init.d/boot.local commands are run before reaching a runlevel.
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink <werner<at>suse.de>, 1996
# Burchard Steinbild, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
This is very common, have a look at $FORUM_DEALING_WITH_MULTIPLE_DISTROS and search for $THREAD_DEALING_WITH_NON_DEBIAN_BASED_DISTRO containing answers from *$DEBIAN/BUNTU_USERS and you know what I mean.
Interestingly in > 95% of all cases users of “God’s own distro” (or one of its derivatives) constantly show this behaviour of ignoring the fact, that other distros (= all NON-debian based, which is the far bigger group) might do things (i.e. even using official standards like LSB) a little different than they know it (on of the most common ones is asking for “/etc/network/interfaces” on networking issues, no matter what distro is being dealt with).