Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
shutdown crontab
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rok Škufca  
View profile  
 More options Jan 26, 12:11 pm
From: Rok Škufca <r...@skufca.net>
Date: Thu, 26 Jan 2012 09:11:59 -0800 (PST)
Local: Thurs, Jan 26 2012 12:11 pm
Subject: shutdown crontab
Hi,

now i have a problem with automatic shutdown, i get the command to the
crontab, but it not work.

crontab -e
00 18 * * * root /sbin/shutdown -h now

this must shutdown webconverger at 18pm, but not work?

BR, Rok


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kai Hendry  
View profile  
 More options Jan 27, 2:28 am
From: Kai Hendry <hen...@webconverger.com>
Date: Fri, 27 Jan 2012 15:28:52 +0800
Local: Fri, Jan 27 2012 2:28 am
Subject: Re: [webc] shutdown crontab
Please boot into debug mode.

Can you tell me what date says? It should in UTC and hence you need to
convert your time.

Also tell me the output of cat /etc/crontab

Thanks,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guttorm Flatabø  
View profile  
 More options Jan 27, 2:37 am
From: Guttorm Flatabø <p...@guttormflatabo.com>
Date: Fri, 27 Jan 2012 08:37:58 +0100
Local: Fri, Jan 27 2012 2:37 am
Subject: Re: [webc] shutdown crontab

There is also a boot option for time zone AFAIK.
On 27. jan. 2012 08:28, "Kai Hendry" <hen...@webconverger.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kai Hendry  
View profile  
 More options Jan 27, 2:41 am
From: Kai Hendry <hen...@webconverger.com>
Date: Fri, 27 Jan 2012 15:41:15 +0800
Local: Fri, Jan 27 2012 2:41 am
Subject: Re: [webc] shutdown crontab
Also output from:

grep -i cron /var/log/syslog

Can be useful in debugging syntax errors in the crontab.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kai Hendry  
View profile  
 More options Jan 27, 3:23 am
From: Kai Hendry <hen...@webconverger.com>
Date: Fri, 27 Jan 2012 16:23:21 +0800
Local: Fri, Jan 27 2012 3:23 am
Subject: Re: [webc] shutdown crontab
2012/1/27 Guttorm Flatabø <p...@guttormflatabo.com>:

> There is also a boot option for time zone AFAIK.

Quite right. :)

I just tried appending timezone=Asia/Tokyo to the boot cmdline and it worked.

ftp://ftp.iana.org/tz/data/zone.tab is the authoritative TZ list

Oh btw, instead of `shutdown -h now` you an use `halt`

00 23 * * * root halt

Next this info should be on the wiki somewhere.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rok Škufca  
View profile  
 More options Jan 27, 3:23 am
From: Rok Škufca <r...@skufca.net>
Date: Fri, 27 Jan 2012 00:23:53 -0800 (PST)
Local: Fri, Jan 27 2012 3:23 am
Subject: Re: shutdown crontab
date
Fri Jan 27 08:13:43 UTC 2012

cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --
report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --
report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --
report /etc/cron.monthly )
#
00 18 * * * root /sbin/sgutdown -h now

grep -i cron /var/log/syslog
Jan 27 09:13:13 localhost /usr/sbin/cron[1319]: (CRON) INFO (pidfile
fd= 3)
Jan 27 09:13:13 localhost /usr/sbin/cron[1320]: (CRON) STARTUP (fork
ok)
Jan 27 09:13:13 localhost /usr/sbin/cron[1320]: (CRON) INFO (Running
@reboot jobs)
Jan 27 08:16:01 localhost /usr/sbin/cron[1320]: (*system*) RELOAD (/
etc/crontab)
Jan 27 08:17:01 localhost /USR/SBIN/CRON[1600]: (root) CMD ( cd / &&
run-parts --report /etc/cron.hourly)

tnx

On Jan 27, 8:41 am, Kai Hendry <hen...@webconverger.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Robson  
View profile  
 More options Jan 27, 12:59 pm
From: Steve Robson <srob...@cadence.com>
Date: Fri, 27 Jan 2012 17:59:25 +0000
Local: Fri, Jan 27 2012 12:59 pm
Subject: Re: [webc] Re: shutdown crontab

Rok kufca wrote:
> 00 18 * * * root /sbin/sgutdown -h now

There's your error.  It should read "shutdown".

--
   Regards,
   Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rok Škufca  
View profile  
 More options Jan 28, 5:23 am
From: Rok Škufca <r...@skufca.net>
Date: Sat, 28 Jan 2012 02:23:39 -0800 (PST)
Local: Sat, Jan 28 2012 5:23 am
Subject: Re: shutdown crontab
That works for me:

00 22 * * * root halt

i have set the timezone=Europe/Ljubljana, and the time is ok.

In the crontab is set to shutdown at 22:00, but system shutdown 1 hour
later at 23:00?

Regards,
Rok

On Jan 27, 6:59 pm, Steve Robson <srob...@cadence.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »