is it possible to restart cron itself

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
netusernoname
DD-WRT Novice


Joined: 21 Jul 2016
Posts: 1

PostPosted: Thu Jul 21, 2016 4:17    Post subject: is it possible to restart cron itself Reply with quote
Hi All

i have some issue : my ddns update script hangs every day and i try to solve by restart router router at 04.00AM every day but not working script still hang.
so i want some help for anyone. can i restart cron itself wit "stopservice cron && startservice cron"
on cron section
Code:
*/5 * * * * root /usr/bin/wget -qO- http://ddns.com/nic/update?username=xxx"&"password=xxx"&"hostname=xxx.ddns.com &> /dev/null
stopservice crond && startservice crond


thank you all
Sponsor
Mike42Smith
DD-WRT User


Joined: 14 Feb 2016
Posts: 146
Location: Germany

PostPosted: Sun Jul 24, 2016 11:33    Post subject: Reply with quote
Well, I wouldn't restart the cron service.
First I would use the DDNS update process build in the DD-WRT WEB-GUI. Why do you use a cronjob for this update without the function to update the DDNS entry every time your WAN interface gets a new IP address?

Nevertheless I would also try cronjob command like this:

Code:
*/5 * * * * root /usr/bin/wget -qO- 'http://ddns.com/nic/update?username=xxx&password=xxx&hostname=xxx.ddns.com' &> /dev/null


or " instead of '

_________________
Ongoing experiences with:
Linksys E3000 and WRT610N v2
TP-Link Archer C9
Raspberry Pi and TP-Link TL-WR710N with OpenWRT
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum