Persist a chron job
Dal1980
Posts: 3
Hi guys
Got a bit of problem with a NAS326
I'm trying to create a persistent root chron job. I only found out recently that the Zyxel upon rebooting refreshes/reloads the OS and overwrites some (or all) files such as crontab.
I think I managed to follow along with most of what was explained in another post https://community.zyxel.com/en/discussion/8219/zyxel326-lost-settings-after-reboot-and-other
Here's a snapshot of where I got to:
Created a directory as instructed (zy-pkgs) and downloaded the web_prefix
App Center installed MetaRepository
App Center installed Tweaks
App Center installed RandomTools
I'm struggling to understand the rest of the instructions and I can't find any "Change Home Dir" tool
There was something I needed to with /etc/profile file but I'm at a loss at this point.
From my understanding, I'm making root's home directory on the NAS drive rather than making it refer to memory so that any changes become permanent rather than losing it all after a reboot. Presumably something I've installed makes the boot process check if there is a home directory present on the NAS drive. I don't know though, I'm speculating. Can anyone offer help to complete this setup?
Many thanks
J
Got a bit of problem with a NAS326
I'm trying to create a persistent root chron job. I only found out recently that the Zyxel upon rebooting refreshes/reloads the OS and overwrites some (or all) files such as crontab.
I think I managed to follow along with most of what was explained in another post https://community.zyxel.com/en/discussion/8219/zyxel326-lost-settings-after-reboot-and-other
Here's a snapshot of where I got to:
Created a directory as instructed (zy-pkgs) and downloaded the web_prefix
App Center installed MetaRepository
App Center installed Tweaks
App Center installed RandomTools
I'm struggling to understand the rest of the instructions and I can't find any "Change Home Dir" tool
There was something I needed to with /etc/profile file but I'm at a loss at this point.
From my understanding, I'm making root's home directory on the NAS drive rather than making it refer to memory so that any changes become permanent rather than losing it all after a reboot. Presumably something I've installed makes the boot process check if there is a home directory present on the NAS drive. I don't know though, I'm speculating. Can anyone offer help to complete this setup?
Many thanks
J
0
Accepted Solution
-
Dal1980 said:The Tweaks webinterface just keeps trying to load the page with nothing happening.Oh? That is not the intention. Either your webserver or Tweaks is broken.Can you try to run:REQUEST_URI='/pkg/Tweaks/pkgcgi.cgi' /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/pkgcgi.cgithat should output the whole html page, ending with a '</body>'.If it doesn't, tryREQUEST_URI='/pkg/Tweaks/pkgcgi.cgi' sh -x /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/pkgcgi.cgito see a 'debug log', and give me the last 10 lines, or more, if you think they are significant.
1
All Replies
-
Giving root a persistent homedirectory won't make your cronjob persistent. Instead use the cron feature in the Tweaks webinterface. (And the 'change home dir' can also be found there)
0 -
Thanks Mijzelf
The Tweaks webinterface just keeps trying to load the page with nothing happening. Is there something I've missed when installing the MetaRepository tools or do I need to add/change some settings somewhere?
0 -
Dal1980 said:The Tweaks webinterface just keeps trying to load the page with nothing happening.Oh? That is not the intention. Either your webserver or Tweaks is broken.Can you try to run:REQUEST_URI='/pkg/Tweaks/pkgcgi.cgi' /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/pkgcgi.cgithat should output the whole html page, ending with a '</body>'.If it doesn't, tryREQUEST_URI='/pkg/Tweaks/pkgcgi.cgi' sh -x /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/pkgcgi.cgito see a 'debug log', and give me the last 10 lines, or more, if you think they are significant.
1 -
Mijzelf said:Dal1980 said:The Tweaks webinterface just keeps trying to load the page with nothing happening.Oh? That is not the intention. Either your webserver or Tweaks is broken.Can you try to run:REQUEST_URI='/pkg/Tweaks/pkgcgi.cgi' /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/pkgcgi.cgithat should output the whole html page, ending with a '</body>'.If it doesn't, tryREQUEST_URI='/pkg/Tweaks/pkgcgi.cgi' sh -x /i-data/sysvol/.PKG/Tweaks/gui/Tweaks/pkgcgi.cgito see a 'debug log', and give me the last 10 lines, or more, if you think they are significant.
First command worked and I see the webpage now. Thanks so much.
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 277 USG FLEX H Series
- 277 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 75 Security Highlight