General :: Set A Programm Auto Started When The Machine Is Restarting?
Jan 6, 2010
I've installed a JBoss-JON-Agent on a Linux-machine. Normally to start the JON-Agent I have to go to /opt/jboss/VGER1/Agent/bin/ and run ./ rhq-agent-wrapper.sh startBut sometimes the Linux-machine will be restarted and I have to start the JON-Agent manually.Now what I want is: when the Linux-machine is restarting, the JON-Agent will be restarted.
I want to use myscript.sh to auto-start an application. I put myscript.sh into /etc/init.d/ and run "update-rc.d myscript.sh defaults". After reboot, I can see my application was started (its log file was updated), but I cannot see my application running if I do ps -ef. I suspect it is killed by the OS.
I have two script under /etc/init.d/ 'jboss' and 'client'. By machine-reboot these two scripts will be run. But what I want now is: The 'client' can only be run after the 'jboss' is successfully up.
Linux cj454lt 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 GNU/LinuxI noticed in top java was at the top of the queue.The machine runs very slow and takes forever to load mozilla pages etc. NOTHINGse is actively running on the box. No application this is happening at login time. Just start Mozilla. So I killed the java process and it seems to get better. Nothing looks out of the ordinary on the box
I mount a few locations from a VMware virtual machine, but currently every time I start up VMware I need to re-mount the locations once the VMware image has started up fully, which gets tedious. I'd like to be able to mount them automatically when VMware is started.
I generally double-click the .VMX file (which is associated with VMware Player) to launch the virtual machine, but once it has finished loading I would need to run the mount commands manually or execute a bash script that does it.
Is there any way you can think of to have it done automatically? One way I can think of is to start my virtual machine by running a script that starts VMware player, sleeps for a minute or so, then runs the mount command - but setting the right sleep interval would be difficult because this varies a fair bit - and overall, it's a solution that's kinda icky and that I'd like to avoid if there's some better option.
I installed Ubuntu 10.04 LTS onto a blank hard drive with the prospective goal of running WoW on it. I installed Wine and all my security updates and restarted; everything worked fine, but I noticed that the system was suggesting that I get some "proprietary" drivers for my HD Radeon 4550 card. I proceeded to install them and was told that the the OS needed to restart to make the changes. I clicked the close button, restarted from the menu in the top-right hand corner, and when my machine started back up -bam!- frozen on the ubuntu splash screen.
I'm reinstalling now (after trying everything I could think of) and I just want to know how the hell this happened, and how I can avoid it in the future. I'm trying to make the switch from Linux to Windows, but this isn't making it any easier. Also: is there any way I can set up ubuntu to look and interface like a windows clone.
I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use startx /usr/bin/startkdeBut using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other playerBut when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx
This is my first post and I'm pretty new on Debian. I had used Ubunu for a while now and I've decided to move on Debian Squeeze.But I've one problem: I've a Java programm to install and the installer is GUI Java based. When I run the script, I've the next message:
Preparing to install. Extracting the JRE from the installer archive.Unpacking the JRE.Extracting the installation resources from the installer archive.Configuring the installer for this system's environment.Launching installer Graphical installers are not supported by the VM. The console mode will be used instead. Preparing CONSOLE Mode Installation. But this program is not able to run the installation in console mode.
I've tried to install sun-java6-jre but without success.Has anyone an idea to help me install this programm? My Configuration: Debian Squeeze 6.0 amd64.
Is there a way to auto run a script when a usb hard drive is plugged in without creating a udev rule or something similar. The idea is that no matter which computer I plug the drive into it runs the script automatically (I want to EXPORT some directories when the drive is plugged in)?
I code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.
I have a new 64 bit workstation (Dell Vostro i7) which I usually keep running for extended periods (read; days and weeks). I have realized that the system completely ignores when I insert a USB stick (LaCie 8Gb USB Key). By ignore, I mean it doesn't get mounted, and /media/ is empty. Interesting enough if I go into YAST and probe for Hardware Information, I find my USB stick there under the USB section. There is no specific entry for the key in /etc/fstab by the way, as far as I know I don't need to specify how a USB stick should be mounted. Auto-mount, when it actually works, is perfectly fine.
I have a machine with several IP addresses with eth devices like eth0, eth0:1, eth0:2, eth0:3. Can I restart only eth0 without bringing down eth0:1? It would be really convenient to be able to log in via SSH on eth0:1 and restart eth0 without locking myself out or not being able to bring the network back up.
If I stop eth0, will that automatically stop all the others?
i have a problem with my server, it was rebooted to get a special upgrade and it never turned on again. the support told me it's giving grub error 15, file not found. my server is a debian lenny 5 32bit one in raid 1. my menu.lst is:
I am attaching a LTO-3 tape drivce into my RHEL5 linux machine. Every time i used to restart my machine to detect the tape drive is there any way to rescan the buses to detect the newly attached scsi devices. In solaris "devfsadm" and "iostat" is there. I need the same kind of thing in linux.
I am running LMDE with xfce desktop version 4.8.0 and Windows 7 on a sony vaio. Everything works fine except for one minor inconvenience... When I am using xfce and want to reboot to windows, I have to click shutdown,turn the computer off then back on to get to the grub menu. If I click restart, it reboots back into xfce without ever showing the grub menu.
Code: #!/bin/bash ulimit -c unlimited while true; do ./executeable; done
When i will write this in console it will run executeable file and it will generate report : core.pid after crash so i can gdb the report. The application after crash will restart how can i prevent restarting the application after it's crash?
I have Win XP SP2 installed on my machine. I wanted to try Ubuntu and i created a CD an and wanted to install the OS. The CD booted and i selected the option of "using The OS together and selecting which one to boot" or something similar to that. Ubuntu and changed MBR and installed itself. However on restarting I am getting Error 18. Now i am unable to use my computer at all.
In recover my XP at the moment and how to install Linux so that it does not mess around with any other OS?
I have GShutdown 0.2 on ubuntu .when i put it on with some time it is just restarting the session and going directly to login window. "sudo shutdown -P -- --" is working properly so why the GShutdown 0.2 is not??
Possibly related to this previous question, I would like to be able to run a task for a specified amount of time, then stop/kill it, then start it again. Specifically, I run the Folding@Home application on my Linux workstation. Periodically, it will have trouble logging-in to the home server, and will sit idle for a long time, but not release memory/resources it has claimed (yes, I realize this is likely a bug in the tool, but I can't fix that currently). Typically just the act of killing and starting the tool will allow it to check-in again. So, I would like to be able to run something like:
run_for <time> ./fah6
Does such a tool exist, or should I write a wrapper than nukes the fah6 client after, say, a week and restart it?
How do I program a virtual machine to auto-start/boot upon boot up of the host system? I am experimenting with SNORT network intrusion detection system and have installed it inside a virtual ubuntu box which I want to start automatically.
I'm trying to ensure an app starts on boot up but after MySQL has been started. I can't however locate where MySQL is being started. If I do a chkconfig, it says MySQL is off, yet I can readily access my databases with phpmyadmin.If I look at my boot log, I can see it says MySQL Server is started, right after Apache2 is started.In my rc5.d directory, I only see a symbolic link for Apache2 but nothing for MySQL. The startup script for MySQL appears in /etc/init.d.rc.local has got nothing in it but comments. So it appears to me like it's being run on startup, but not as a service. But I have next to no knowledge of Linux so don't put too much belief in that.I would have originally installed MySQL via apt-get.