Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
if we know nothing about your setup, we cannot help you locate your startup file.
we also don't know what you want to do with "the startup file" once you find it.
blind guesses:
supposing red hat uses a desktop environment, it will have a menu entry where you can add/remove applications to start at login.
most linuxes execute some form of $HOME/.*profile* at login.
other options are via init system at boot.
e.g. systemd.
Hi,
Within Red hat, where is the startup file located at?
The system boots using a piece of software named grub. The grub configuration file is /boot/grub/grub.conf in Red Hat Enterprise Server 6.x, and /boot/grub2/grub.cfg in 7.x.
Grub itself consists of several components including the bootloader in the first 512 bytes of a disk, a disk area right after the partition table and various files under /boot/grub or /boot/grub2.
Grub then starts the Linux kernel named vmlinuz.... and located at /boot. After that, numerous configuration files and files with startup code are used.
cd /root/Downloads/wildfly-9.0.1.Final/wildfly-9.0.1.Final/bin
./standalone.sh
to the file
/boot/grub/grub.conf
and then have shut down the machine and have re-started but the commands are not executed as expected, during startup. Please advise.
Grub doesn't execute shell scripts. It starts the operating system, in other words it runs before the OS runs.
If you need to run shell scripts at startup time, I suggest putting them in /etc/rc.local. This is the last file that gets executed after the OS initializes and all services are started up.
cd /root/Downloads/wildfly-9.0.1.Final/wildfly-9.0.1.Final/bin
./standalone.sh
to the file (/etc/rc.local). But it seems the OS cannot start as expected, and I now only have got such screen
and cannot access the GUI interface of t he OS. Any advice?
Aside from the VERY obvious advice of, "remove those two lines"? Not really.
Since you've been posting here for FOUR YEARS now, you should at this point, be able to execute simple commands. The two lines above are a good example of something you should have learned by now; WHY are you putting a "cd" command in, when you can just put the entire executable on one line??? Such as "/root/Downloads.../standalone.sh"
And AGAIN, as you have been asked MANY times over the years, you provide next to zero details, and STILL don't use the Red Hat support which you should be paying for. Since you don't say what version of RHEL, there is no way for us to guess. But a simple Google search for "run a script after system start in red hat linux" pulls up this: https://access.redhat.com/documentat...-run-boot.html
...as the VERY FIRST HIT. Please, try to show some effort of your own.
...as the VERY FIRST HIT. Please, try to show some effort of your own.
Or even better google "run wildfly on boot". Wildfly seems to come with an init script which you need to copy to the right place and enable it to run on boot. Took me 2 seconds to find this
Please follow the instruction from the link I posted. It describes exactly what you want to do. It also describes how to run it as a different user, and NOT ROOT!
You've been 'advised' several times now. Yet you haven't actually done anything with the advice you've been given. JohnVV told you that if you were using a GUI based system, to put that file in place, so WHEN YOU LOG IN it will run. You were also given advice on how to run commands at startup, and spoon-fed a link by hortageno that EXPLICITLY TELLS YOU how to start this at system boot...but you're ignoring it all, and seem confused as to why it's not working.
You've been 'advised' several times now. Yet you haven't actually done anything with the advice you've been given.
or at least you haven't showed us anything.
do you really think i will retrace this thread to guess what you could have possibly meant by "url steps"?
show us everything.
in as much detail as possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.