Debian :: Program For Automatic Or Remote Reboot Process?
May 21, 2010I looking for a program for automatic or remote reboot process...
Soon I order a VPS and needs a Call of Duty (or other games too) server restarter, if its crash...
I looking for a program for automatic or remote reboot process...
Soon I order a VPS and needs a Call of Duty (or other games too) server restarter, if its crash...
I'm trying to figure out if I can do a remote reboot (eg over ssh) and specify a new grub2 os choice for the next boot only (once), in order to boot windows remotely once, but then back to linux on the next reboot.I found this related post for grub, but won't work for grub2 ( I never tried it with grub for a remote reboot)[URL]which suggests changing the default menu option with the once flag:
[root@localhost ~]# echo "savedefault --default=2 --once" | grub --batch
[root@localhost ~]# reboot
I'm just starting to work with grub2 and am not at all clear whether I can do anything similar
I was wondering if there is a way to automatically transfer files between one machine to another upon Debian starting (or when a script is executed). Would it be also possible to check a database for a value and if the value exists then files can be transferred automatically (just like reboot).
View 3 Replies View RelatedI tried to set up an automatic program restart on Debian Lenny for fail2ban and asterisk. Google helped me to find some HowTos. However, all what I tried so far doesn't work. The latest version: According some instructions the following commands have been written in a file called auto_start_stop:
Code: #! /bin/sh
-> saved in the folder /etc/init.d and
-> its properties changed with a right-click to 075.
-> The links have been created with update-rc.d auto_start_stop defaults
Why this doesn't work and how I could correct it?
Upgraded webserver to Jessie as an upgrade to Wheezy produced errors, and before reboot everything was up and running, but as all upgrade docs and info I read, I rebooted the server. However it never came back. I have the original backup files before I did the Wheezy upgrade. I also have access by Rescue to the server.Made a back up of critical files and have a 24GB tar file and I can connect by SFTP.
how to check the Debian files... Grub etc.. I would prefer to find the issue than start again.I am not able to sudo from Putty. I cannot run apt-get update. I did go to chroot, but then I get unable to resolve host errors and Could not open lock file because Permission denied errors and asking if I am root.There is information by googling for start up issues, but as I am working remotely with a Rescue set up, a lot of the commands I see and have tied do not work.
I have a problem while rebooting my 9.10 server when I have SAN partition mounted. The message is something about the swap that can not be cleaned during the process. All works if I unmount the partitions before shutting down or rebooting.So I though to create a bash script that unmounts the parts during runlevel 0 and 6.I've created a simple script like this in /etc/init.d:
#!/bin/bash
umount /mnt/xxx
and the I've done:
[code]....
Is there any way to reboot my centos 5.2 server automatically once the ping result to my default gateway is continuously greater or equlls to 10 ms.
View 3 Replies View RelatedI did an automatic update and rebooted this morning and I now have a bit of a nightmare situation where I can't open the majority of applications, including the terminal. When I rebooted, my desktop loaded as normal, but then when I try to open the terminal (from Applications -> Accessories or from my quick launch panel), nothing happens other than the quick launch panel disappears for a second then reappears. This is the case for most other apps, but not for Chrome (obviously).
Used Alt+F2 to open the terminal, ran safe upgrade and then rebooted, but still having the same issue. As Ubuntu was booting, there was a "Broken pipe" message, which didn't stop the boot process but is still a bit worrying. I've run a file system check but this hasn't resolved the problem either.
I have a working RHEL in /dev/sda1 and a newly constructed Ubuntu Lucid in /dev/sda2. I'm going to edit the grub config and reboot the server into the new Ubuntu. However, I'm not 100% sure that the new distro can boot. And since my only way to access the server is via SSH, I need the network to be up too.
How can I configure Grub and Ubuntu so that if the server fails to boot, it will automatically reboot into the old RHEL? Currently using GRUB 0.93, but I can upgrade it if needed.
Update: In the end, no boot failure occured. But without the insurance from this, I wouldn't have attempted [URL]..
I tried to search the internet for this, a program that deletes files in the computer. However, I can't find one.What happened to me is, I clean up folder files individually. I was hoping that a program where, if there is a file that should be deleted in a lapse of a particular time, it will automatically do so.
View 2 Replies View RelatedI've installed yesterday xmms and now I want to uninstall it. I've done it with yum. When I uninstall it like this: "yum remove xmms", then yum removes this package, but, when I check "yum list | grep xmms" I get full list of other packages like bluecurve-xmms-skin.noarch, gkrellxmms2.x86_64, gxmms2.x86_64 , ...
I want to cleanly remove the xmms, so I should remove all this packages "manually"? Is there a method to check wich packages are not used by any program on my computer and remove them? Or any method to remove all packages with a program automatic?
i have been encountered this issue since ubuntu hardy 8.04.3, and now after i clean installed to ubuntu lucid 10.04 with the latest update up to june 6, 2010, i still could not reboot via command line in a remote ssh.
View 2 Replies View RelatedMy centos machine suddenly stuck, the hdd LED flashes constantly, and the system reacts to all my operations very slow. I even cannot log in to a native terminal (always timeout). I had no choice, I pressed the power button. Reboot once failed. The system failed to find mount points.
I inserted the installation disk into computer and entered rescue mode. But I found everything was there. And another reboot brought up the system. I wonder what was the process that stuck my system.
I need help adding a nohup command in this command line: su - rhx12 -c "/rhythx/rhythx/bin start /rhythx/rhyth" When I execute the script using root on the command line it works fine. But, when I reboot the server the process doesn't start. This script will go into the etc/init.d and rc2.d directory.
#!/bin/bash
case $i in
start)
su - rhx12 -c "/rhythx/rhythx/bin start /rhythx/rhythx"
;;
[Code]...
I installed Ubuntu in my PC alongside winXP. I downloaded the ISO and mounted it using a virtual image software (PowerISO used in winXP). I installed Ubuntu using wubi in a 20GB partition. During installation it asked me how much space should I give, I gave it 11gb. Everything went fine. I rebooted but now the computer hangs during startup. I went to verbose mode to see what the error is and found out that everything is ok. The last line that apears is "Setting sensors limit [OK]" and then nothing happens. I have tried every option (safe graphic mode/ demo mode etc etc) but the computer hangs.
View 1 Replies View RelatedI have an Ubuntu Desktop machine that I have to frequently access remotely - sometimes after it has rebooted. I'm not concerned about physical security for the machine but I am concerned about remote security.
Since normal VNC isn't activated until after the login, what is the best way to go about remotely accessing this machine's desktop without having hands on it?
I've tried setting auto-login but then I run into the keyring not unlocked problem. Disabling the keyring or setting a blank password seems like a bad idea.
it stuck after loading. should got login window. instead it show me a blank page and a blinking courser i can only press ctrl+alt+del it will reboot my laptop n stuck after the loading process
View 2 Replies View RelatedI tried a remote reboot via ssh. I couldn't log back in even though sshd is a startup script, because the KDE daemon wanted me to enter my kwallet password...which is of course part of the DE, not something accessible via ssh. How do I turn off that check or automate it?
View 2 Replies View RelatedI have a startup script placed in /etc/init.d wherein I make the following call:
nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1
This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?
I'm running a process on my university's supercomputer that takes several hours to run every time. Is there a command I can use to exit my ssh session without killing the process I'm running?
View 1 Replies View RelatedIs is possible to move a process from one shell to another (local to remote)
e.g.
if
my_code.sh &
#jobs
[1]- Running my_code.sh &
was started on one remote shell is it possible to move it to the foreground on another shell as root or another user?
Because of my English skills I'll try to explain this subject as best I can, thank you for understanding. Fisrt of all, I am running some program on my slackware in background (using standard method - &). I need to make a script, which allows sending command to this process on my machine from another one. Furthermore this program have to be logged out (standard output f.e. ./myprogram > log.out.txt).It might be a separate Program A which runs my Program B but it cannot be screen, because it is not working like I'd like to and it cannot be java, because it's slow and working not the best so to speak
View 6 Replies View Relatedrunning Linux release 2.4.19-uc0, build #511 embedded on a device. It is stripped down to a very minimal configuration and so many of the normal commands are not present.I'm trying to force a reboot from an application I've got running. I've tried the following:
system("shutdown -r");
or
sync();
[code]....
I've been using this howto to set up automatic logins to virtual console using "a C login program" method. In slackware64-current updated till january it prompted me to enter a password before logging in, while now after installing latest updates and kde 4.3.5 from current it logs in automatically without any prompting.
View 3 Replies View RelatedOn occasion I see my bandwidth usage using the gnome system monitor going up to 300kbit/s. I just cant figure out what is causing it. I want to know what process or program in using my network like that? I do ssh into different machines and servers, where I would really like to beable to monitor bandwidth usage. It would be very useful to know which utilities people use to see what bandwidth is being used and by which applications / programs / processes / or threads. I don't even know where to start looking. The two small programs I have found are insufficient. bmon and bwm-ng. And tools like wireshark (packet sniffers) are over kill. I would like some thing in the middle, preferably text console based.
View 3 Replies View RelatedHow to create a c program for an Orphan Process ?
View 5 Replies View RelatedI want to access the process control block to retrieve a process' pid and priority. Any code or the steps to do it.
View 9 Replies View Relatedis it save to install linux kernel 2.6.35.2 on Debian Lenny 5.0.5 or stick with automatic updates...
View 14 Replies View RelatedI want to execute a program at the very last step of Linux boot process. For Debian based Linux distro that uses BSD boot process, I came up with 2 solutions:
1) I should somehow call my program from the /etc/rc.local script (although is this the last step of the boot process?)
2) Use the "multi_end" and "sysinit_end" hooks for executing it at the end of rc.multi rc.sysinit respectively (I don't know how to do it though).
SuSE 11.2, KDE 4.2 after logging in to runlevel 5: I have a process which is calling every 5 seconds /sbin/usbmod (which doesn't exist, hence I get lots of errors when I go to the screen with the boot messages). I want to know which process does the calling. How can I find out?
View 4 Replies View Related