Przegladając terminal po nocy zauważyłem, że mam bardzo dużo uruchomionych i nie zakończonych procesów, kilka wyłączyłem, ale zastanawiam się co się stało, że tak to strasznie wygląda. Przecież jeśli będę chciał trzymać system kilka dni, to skończy się pula id procesów?
Kod: Zaznacz cały
root 12469 12467 0 11:39 ? 00:00:00 wget -q [url]http://8[/url]
root 12483 1446 0 11:40 ? 00:00:00 /USR/SBIN/CRON
root 12486 12483 0 11:40 ? 00:00:00 wget -q [url]http://8[/url]
www-data 12492 591 0 11:40 ? 00:00:00 /usr/sbin/apache
www-data 12496 591 0 11:40 ? 00:00:00 /usr/sbin/apache
www-data 12506 591 0 11:40 ? 00:00:00 /usr/sbin/apache
root 12521 1446 0 11:41 ? 00:00:00 /USR/SBIN/CRON
root 12522 12521 0 11:41 ? 00:00:00 wget -q [url]http://8[/url]
root 12524 1446 0 11:42 ? 00:00:00 /USR/SBIN/CRON
root 12525 12524 0 11:42 ? 00:00:00 wget -q [url]http://8[/url]
root 12526 1446 0 11:43 ? 00:00:00 /USR/SBIN/CRON
root 12527 12526 0 11:43 ? 00:00:00 wget -q [url]http://8[/url]
root 12529 1446 0 11:44 ? 00:00:00 /USR/SBIN/CRON
root 12530 12529 0 11:44 ? 00:00:00 wget -q [url]http://8[/url]
www-data 12532 591 0 11:44 ? 00:00:00 /usr/sbin/apache
www-data 12533 591 0 11:44 ? 00:00:00 /usr/sbin/apache
root 12534 1446 0 11:45 ? 00:00:00 /USR/SBIN/CRON
root 12535 12534 0 11:45 ? 00:00:00 wget -q [url]http://8[/url]
www-data 12536 591 0 11:45 ? 00:00:00 /usr/sbin/apache
root 12537 1446 0 11:46 ? 00:00:00 /USR/SBIN/CRON
root 12538 12537 0 11:46 ? 00:00:00 wget -q [url]http://8[/url]
root 12540 1446 0 11:47 ? 00:00:00 /USR/SBIN/CRON
root 12541 12540 0 11:47 ? 00:00:00 wget -q [url]http://8[/url]
root 12544 1 0 11:48 ? 00:00:00 wget -q [url]http://8[/url]
root 12546 1 0 11:49 ? 00:00:00 wget -q [url]http://8[/url]
root 12548 1 0 11:50 ? 00:00:00 wget -q [url]http://8[/url]
root 12550 1 0 11:51 ? 00:00:00 wget -q [url]http://8[/url]
www-data 12560 591 0 11:54 ? 00:00:00 /usr/sbin/apach
Kod: Zaznacz cały
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
#jesli ma lecic email, to --report po parts
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#4,9,14,19,24,34,44,54,29,39,49,59
#* * * * * root wget -q [url]http://8[/url]...
#
Kod: Zaznacz cały
root@komp:~# crontab -l
no crontab for root
Kod: Zaznacz cały
root@komp:~# ls /var/spool/cron/crontabs
systab tmp.rI6Mga
Kod: Zaznacz cały
nano /var/spool/cron/crontabs/systab
Kod: Zaznacz cały
#Any changes will be apply after restart crond
# run-parts
#&nice(10),mailto(root) 01 * * * * /bin/run-parts /etc/cron.hourly
#&nice(10),mailto(root) 02 5 * * * /bin/run-parts /etc/cron.daily
#&nice(10),mailto(root) 02 2 * * 0 /bin/run-parts /etc/cron.weekly
#&nice(10),mailto(root) 02 4 1 * * /bin/run-parts /etc/cron.monthly
Kod: Zaznacz cały
root@komp:~# /etc/init.d/cron
Usage: /etc/init.d/cron {start|stop|status|restart|reload|force-reload}.
Kod: Zaznacz cały
/usr/sbin/cron
Jeszcze mam pytanie, jest może jakiś wytłumaczony, od początku, cron w jakimś poradniku, publikacji? Najlepiej, aby było wszystko opisane dokładnie jaki jest mechanizm, to takie marzenia moje.
Pozdrawiam,
xadi