Ubuntu :: Run From Cron Shutdown Command Restarts Server Instead Of Shutting It Down?

Jan 4, 2010

I want my server to automatically shutdown at 23:59 and startup at 8:00. The startup is handled through by bios but the shutdown is to be managed through cron. I thought I had this working, I actually swear I had it working because I thought the uptime command showed the appropriate uptime. I happened to be up and was streaming a movie from my server when at the time it should've shutdown it actually just restarted. If I run the shutdown -h now command by itself it works well but the scheduled command just restarts the server. Here is the what is shown when I enter crontab -e.

View 9 Replies


ADVERTISEMENT

Ubuntu :: Shutting Off Pc With Cron?

Jan 25, 2010

I'm trying to set up my pc to power off at 00:30 everynight. I'm using webmin's Scheduled Cron Jobs tool. I've tried (running as root):

halt
shutdown -h now

and neither have powered off the pc using webmin. Am I missing something?

View 8 Replies View Related

General :: Log Out Of Command Line Without Shutting Down The Server

Feb 14, 2011

I am accessing a linux server remotely from my putty. I started the server and now I want to close the command line. when I do cntr+c or cntr+z it kills my server aswell. how will I close my terminal without closing my server? I tried cntr +d but it is not doing anything

View 2 Replies View Related

Ubuntu :: 10.04 Upgrade - Shutdown Restarts Computer

Jul 31, 2010

I'm running Ubuntu 10.04, and ever since last upgrade a couple of days ago (I think), everytime I hit shutdown on the gnome-panel (admittedly, I haven't tried the command line shutdown) the computer restarts itself. This computer is dual-booted with Win 7, and the shutdown command there properly halts the system.

View 3 Replies View Related

Ubuntu :: Meerkat Maverick Only Restarts Will Not Shutdown

Nov 7, 2010

I can chose Shutdown from the menu but the system gets to the point where the power supply should 'click' and shut off. It doesn't, it cycles and the system reboots. It wasn't doing this in 10.04, at least not towards the end prior to updating to 10.10 beta/rc/final. Also, 10.10 didn't do this either, until recently. (Current default = 2.6.35-22-generic)

Here's the funny thing though; if I choose a previous version from the GRUB2 menu, 2.6.32-21-generic for example, the login screen won't allow mouse nor keyboard control but will shut down normally w/ a single, momentary push of the Power Button. Now, there are folks w/ a seemingly similar problem, but in their case they can't shutdown at all. My trouble is a shutdown just triggers a restart.

View 9 Replies View Related

Ubuntu :: 10.10 Not Shutting Down Mysql Properly During Reboot/shutdown?

Dec 9, 2010

I have an mysql innodb ~ 20gigs. Normally shutting down mysql (service mysql stop) takes a few seconds. When I reboot Ubuntu with the reboot or shutdown command it just reboots it super fast without mysql logging (/usr/sbin/mysqld: Shutdown complete) Also during this shutdown the following is failed: umount2: device or resource busy /data: device is busy.

mysql is setup to read from /data . Why is ubuntu not waiting for mysql to properly shutdown before unmounting the filesystem and rebooting?

View 1 Replies View Related

OpenSUSE Install :: System Doesnt Shutdown, But Restarts?

Jun 17, 2010

this forum and also to OpenSuse. Wn i shutdown my sys, it restarts rather than shutting down. Please help me out.

View 2 Replies View Related

Server :: Synchronizing Server Time With Ntpdate Command In Cron?

Jul 14, 2011

we are synchronizing server time with ntpdate command in cron.how often should it run?

View 3 Replies View Related

Server :: Gawk Works From Command Line But Not From Cron

Jun 5, 2010

I have a very simple gawk script to add commas to numbers to make them more readable:

It works perfectly from the command line, but when run from cron it doesn't add the commas.

View 2 Replies View Related

Red Hat / Fedora :: CRON To Shutdown The PC Every 10 Min?

Feb 11, 2010

I'm playing with CRON to perform an automated shutdown. While I'm testing I want CRON to shutdown the PC every 10 min. Here is the crontab.

# crontab -l
0,10,20,30,40,50 * * * * root /sbin/shutdown -h now

I see the command being run in the CRON log, but the PC doesn't shutdown.

Feb 11 11:06:17 localhost crontab[4808]: (root) LIST (root)
Feb 11 11:07:31 localhost crontab[4813]: (root) BEGIN EDIT (root)
Feb 11 11:07:58 localhost crontab[4813]: (root) END EDIT (root)
Feb 11 11:10:01 localhost CROND[4821]: (root) CMD (root /sbin/shutdown -h now)

How would I debug this to figure why my shutdown command is being ignored?

View 4 Replies View Related

Debian :: Unable To Shutdown The Cron

Mar 9, 2011

Is it possible to shutdown or to halt by means of cron ? this crontab entry is doing nothing: 45 3 * * * halt

View 2 Replies View Related

Fedora :: Cron Shutdown But Not On Weekend

Jul 5, 2011

Just read through some cron manuals. (man -k cron).Didnt understood that much though.I'm a gamer and loosing control over time at nights.
So what i want is that my computer shuts down itself at latest 1:30 am. Do i need to set up the command for each day (monday, tuesday.. and so on) or is there an option simliar to my 'example' below?

€dit: Both examples should do the trick.

Code:

# m h dom mon dow command
30 1 * * 1,2,3,4,5 shutdown -h +5 Get some sleep dude!
30 1 * * 1-5 shutdown -h +5 Get some sleep dude!

Where as 1 to 5 would be all weekdays, but not saturday or sunday morning at 1:30am.If i can shorten it to 1 line instead of 7 lines (one per day of week) that would be great.

View 14 Replies View Related

CentOS 5 Server :: Cron Job Doesn't Run, But Doesn't Error. "shutdown -r Now"

Aug 28, 2009

Is there something that blocks cron from running a shutdown command? I'm doing a daily bounce to break an attack (I have thread about that in security forum), but I always end up doing it manually. The cron log shows it being fired off at the right time...but the server never bounces. I thought maybe I just missed it, but there is nothing in messages that shows the server restarting (unlike when i do it manually, you see the start-up logging).

View 2 Replies View Related

Ubuntu Servers :: Reboot Command Shutting Down PC

Jun 6, 2011

I have problem with my reboot command.
sudo reboot and sudo halt -f now don't work (they don't reboot)
but sudo halt -p is shutting down my PC.

View 9 Replies View Related

Ubuntu :: Shutdown Command Like Shutdown Button?

Dec 10, 2010

looking for a command that shutdown/reboot my ubuntu just same as process that happened when I press shutdown buttonIn fact I need to close all programs that are running and then PC shutdown (that happened when I press shutdown button).

View 9 Replies View Related

General :: Preferred Command For Shutting Down The System?

Nov 30, 2010

What is your preferred command for shutting down the system? Please explain your votes.

View 14 Replies View Related

Server :: Unable To Shutdown/reboot Server, No Shutdown Process Running?

Mar 30, 2010

I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.

When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."

View 5 Replies View Related

Server :: Shutdown The Nodes From The Master Terminal Using "shutdown -h Now" Get Shutdown?

Dec 10, 2010

I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .

Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?

View 1 Replies View Related

Ubuntu Servers :: Server Restarts When It Wants?

Jul 12, 2010

I'm currently using ubuntu desktop 9.10 (without desktop - I've removed packages) as OS on my server.But there's going on some strange thing ... There are about 8 users, and the thing is they many times user rar or some other disk-demanding programs. What I've noticed is that sometimes server will go with load over 20 (I know that's not good ...) and it will come down in few minutes and everything is OK, but sometimes it just restarts itself. I would like to disable that so it won't restart

View 9 Replies View Related

Ubuntu Servers :: Server Restarts Continuously?

Jan 31, 2010

Recently, I updated the kernel to the latest version and also installed Ruby and the Passenger module for Apache. The server was fine for a few days.However, today, it's been restarting randomly (usually a minute after I can log in).I tried booting with recover mode so I could view the logs for a longer period of time, but that caused it to restart before even allowing me to log in. Now, all boot modes will just cause the server to restart right after the GRUB messages appear.Our server setup complicates things. We have a RAID-1 mirroring for the /boot partition and a RAID-5 (software) for the / partition

View 1 Replies View Related

Ubuntu Servers :: Server Restarts Randomly?

Jul 2, 2011

I`m using Ubuntu Server 10.10. The system randomly restarts each day.Here are the logs: http://paste2.org/p/1499309Everything seems normal except that UDP: short packet thingy but even Google didn`t help me to find what`s thatBy the way, I think reboots started after I configured this PC as a gateway between internet and my local network

View 2 Replies View Related

Ubuntu Servers :: Server Shutting Down Every Night?

Dec 14, 2010

I have Ubuntu Server 10 installed on my Desktop and it seems to shut down every night, requiring me to turn it on each morning. Is there any log/place I can check to figure out what's causing the shutdown?

View 6 Replies View Related

General :: OpenSSH Server Restarts Twice When Booting - Ubuntu 9.10

Mar 20, 2010

Changes I've made to the config files:

Connecting with PuTTy works fine with my public/private keys. But why does sshd start and then restart twice when booting? I tried looking in the logfiles under /var/log/ for anything with ssh/sshd but nothing shows up.

Ubuntu Server 9.10

View 6 Replies View Related

General :: Shutting Down X Server

Apr 10, 2011

ok well i installed Ubuntu 10.10 like 2 weeks ago on my computer and I have Spent like A week and a half trying to shut down the X Server. I am trying to install an nvidia driver to my computer... all of the option and ways to do it would be helpfull... any more information needed i will give to you (NVIDIA-Linux-x86-260.19.44.run)

View 3 Replies View Related

Red Hat / Fedora :: My Virtal Server Automatically Restarts

Sep 2, 2010

This is my first message. I manage a Virtual Web Server(provider Dattatec).

The problem is that the server automatically restarts... in /var/log/messages, i don't see any message:


I ask mi provider, and says that is because is out of memory... How can i check this? How can i know why my server restarts ?

View 5 Replies View Related

Debian :: Alt+Ctrl+F1 Restarts X Server - No Virtual Console

Feb 8, 2010

I installed latest stable debian lenny. However when I want to switch to a virtual console by pressing Alt+Ctrl+F(1-6) the X server is restarted and I get the gdm login screen. When I kill gdm, virtual console switching works fine. How to switch a to a terminal and return to my X session by pressing Alt+Ctrl+F7?

View 10 Replies View Related

General :: If Server Restarts Does Information In Iptables Get Lost?

Aug 9, 2009

If the server restarts, does the information in iptables get lost? I have seen a number of pages where people recommend readding lines or creating bash scripts to get it to work again. What about files like squid.conf, ncsa_auth files, etc.?

View 10 Replies View Related

General :: Crontab Saved In Case Of Server Restarts?

Aug 10, 2009

Is the crontab saved in case of server restarts?

View 2 Replies View Related

Ubuntu :: Cron Command: Runs From CLI, But Not Auto?

Mar 10, 2010

I have a script that is basically a series of rsync commands called bkup_all.sh. This script is located in the /root/ dir.From the command line (su'd as root), I can run the script like this:/root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logThis excecutes perfectly, and all the rsync adn script output is saved in a log file in the intended destination. However, I want this command to run automatically, so again, su'd as root I enter:crontab -ethen enter the following:00 02 * * * /root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logI want the script to run each night at 2:00am.But, the script does not run. There is no log file generated and I do not see anything in the syslog or system messages to indicate an error.

View 2 Replies View Related

Ubuntu Servers :: 10.04 Server Edition Not Booting Properly - Monitor Shutting Down

May 16, 2010

I 10.04 32bit server edition on a box I had lying around, set it up for samba+upnp, and everything was going great.

When rebooting, the server now turns the monitor off, and I'm not sure if anything's loading. I see the initial dell splash screen, and hear the hard drive start to run, and then the monitor goes into standby.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved