Synology-Forum.nl
Tweaks / Addons A.K.A. The Underground => Optware / IPKG / Telnet => Topic gestart door: ronhoo op 13 oktober 2012, 20:31:05
-
Ik heb onderstaande tekst, ik wil het script zo aanpassen zoals in de tekst staat. Om alles werkend te krijgen
Maar hoe doe ik dat?
?When CrashPlan downloads and attempts to run an automatic update, the script will most likely fail and stop the package. This is typically caused by syntax differences with the Synology versions of certain Linux shell commands (like rm, mv, or ps). You will need to wait several minutes in the event of this happening before you take action, because the update script tries to restart CrashPlan 10 times at 10 second intervals. After this, you simply start the package again in Package Center and my scripts will fix the update, then run it.
?After their backup is seeded some users may wish to schedule the CrashPlan engine using cron so that it only runs at certain times. This is particularly useful on ARM systems because CrashPlan currently prevents hibernation while it is running (unresolved issue, reported to Code 42). To schedule, edit /etc/crontab and add the following entries for starting and stopping CrashPlan:
55 2 * * * root /var/packages/CrashPlan/scripts/start-stop-status start
0 4 * * * root /var/packages/CrashPlan/scripts/start-stop-status stop
This example would configure CrashPlan to run daily between 02:55 and 04:00am. CrashPlan by default will scan the whole backup selection for changes at 3:00am so this is ideal. The simplest way to edit crontab if you’re not really confident with Linux is to install Merty’s Config File Editor package. After editing you will need to restart the cron daemon for the changes to take effect:
/usr/syno/etc.defaults/rc.d/S04crond.sh stop
/usr/syno/etc.defaults/rc.d/S04crond.sh start
-
Ik heb onderstaande tekst, ik wil het script zo aanpassen zoals in de tekst staat. Om alles werkend te krijgen
Maar hoe doe ik dat?
<..>
In je control panel van DSM dien je SSH aan te vinken onder "Terminal"
Google naar "Putty Download" en download Putty.exe uit de eerste link.
Putty is een applicatie waarmee je een verbinding kan maken naar je NAS.
(Hoe putty precies werkt wil ik niet uitleggen omdat het daarvoor te veel kan. als je nieuwsgierig bent kun je hier naar googlen.)
Open putty en verbind naar het IP adres van je NAS.
Eenmaal verbonden kun je in je crontab komen met het volgende commando:
vi /etc/crontab
de VI editor is even wennen in het gebruik.
Ga met de pijltjes toets naar de onderste regel van crontab.
Toets nu ESC o
Er zal een nieuwe lege regel ontstaan.
Met ESC i kun je tekst invoeren en met ESC u je laatste wijziging ongedaan maken.
Hoe crontab werkt kun je terug lezen op de site van wizjos (http://wizjos.endofinternet.net/synology/index.php/handigheidjes/cron).
Met het commando ESC :q! verlaat je het programma/het document ZONDER dat je gegevens opslaat
Met het commando ESC :wq verlaat je het programma/het document en sla je,je aanpassingen op.
Als je, je aanpassingen hebt doorgevoerd kun je deze commando's gebruiken om cron te herstarten.
/usr/syno/etc/rc.d/S04crond.sh stop
/usr/syno/etc/rc.d/S04crond.sh start
Succes!
-
Bedankt,
het lukt om eea in te voeren.
Maar als ik wil opslaan, krijg ik de melding crontab is read only
Hoe wijzig je dit?
-
Je moet inloggen met gebruikersnaam root ipv admin of je eigen gebruikersnaam.
Dan werkt het wel
root@ip_nas in putty
en dan je admin wachtwoord gebruiken
-
Bedankt het is gelukt,
maar hoe krijg ik de commando's voor het stoppen en starten van de cron ingevoerd.
In het scherm staat NAS> en daarachter vul ik de comando/usr/syno/
enz in.
Maar dit is dus fout.
-
Bedankt het is gelukt,
maar hoe krijg ik de commando's voor het stoppen en starten van de cron ingevoerd.
In het scherm staat NAS> en daarachter vul ik de comando/usr/syno/
enz in.
Maar dit is dus fout.
/usr/syno/etc/rc.d/S04crond.sh stop
/usr/syno/etc/rc.d/S04crond.sh start zou moeten werken.
anders moet je zoeken waar je crond.sh staat.
cd / [ENTER]
find . -name *crond.sh
Dan zie je waar het bestand staat en wat de naam is.
Dan copieer je dat hele pad inclusief de naam van het bestand en zet je er stop en start achter.