What's new

Scheduled reboot - services-start strange issue

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ilium007

Regular Contributor
Hi I have a strange issue occurring when I try and schedule a reboot. I set up the services-start file with:

#!/bin/sh
cru a scheduled_reboot * 5 * * * reboot

But after I reboot I see this when I do a 'cru l':

admin@(none):/tmp/home/root# cru l
bin cifs1 cifs2 dev etc home jffs lib mmc mnt opt proc rom root sbin sys tmp usr var www 5 bin cifs1 cifs2 dev etc home jffs lib mmc mnt opt proc rom root sbin sys tmp usr var www bin cifs1 cifs2 dev etc home jffs lib mmc mnt opt proc rom root sbin sys tmp usr var www bin cifs1 cifs2 dev etc home jffs lib mmc mnt opt proc rom root sbin sys tmp usr var www reboot #scheduled_reboot#

So I delete it manually:
admin@(none):/tmp/home/root# cru d scheduled_reboot

and then re add it manually:

admin@(none):/tmp/home/root# cru a scheduled_reboot * 5 * * * reboot

and now cru l looks fine:

admin@(none):/tmp/home/root# cru l
* 5 * * * reboot #scheduled_reboot#

What am I doing wrong ??!!
 
And I see this in the syslog:

Dec 16 22:16:05 192.168.10.1 crond[539]: user admin: parse error at bin
Dec 16 22:16:05 192.168.10.1 crond[539]: user admin: parse error at cifs1
Dec 16 22:16:05 192.168.10.1 crond[539]: user admin: parse error at cifs2
Dec 16 22:16:05 192.168.10.1 crond[539]: user admin: parse error at dev
Dec 16 22:16:05 192.168.10.1 crond[539]: user admin: parse error at etc
Dec 16 22:16:05 192.168.10.1 crond[539]: time disparity of 1030335 minutes detected

Obviously cron is spitting re. the string that is getting pumped into the command somehow.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top