Editing
Basale infrastructuur
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== cron == Sommige jobs sterven, zoals de mysql-pipe voor syslog-ng, zodat het noodzakelijk is om telkens vast te stellen of de job nog loopt en weer te starten als de job verdwenen is. <pre> # m h dom mon dow command # Minute Hour Day of Month Month Day of Week Command # (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat) * * * * * /etc/syslog-ng/check-mysql-pipe.sh # cron draait dit script elke minuut. */5 * * * * /usr/local/bin/some-script.sh # cron draait dit script elke vijf minuten. # Soms is meer nodig in cron, zoals het afvuren van een job in een random window om overbelasting door massale actie op één server te voorkomen # SHELL=/bin/bash # Deze regel zorgt ervoor dat het upload script van een groot logbestand van vele servers naar een centraal punt soepel verloopt. # RANDOM is een shell variable met een waarde tussen 0 en 32768, die na elk gebruik een nieuwe waarde krijgt. # Vermenivuldigen met 300 en delen door 32768 levert een waarde tussen de 0 en 300 seconden op, vijf minuten. 12 0 * * * sleep $((RANDOM*300/32768)); /usr/local/bin/copy-log.sh </pre>
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information