Wie stell ich das fest?
Wenn ich das
Code:
sh -x /etc/init.d/cron start
in der Shell eingebe, kommt das raus:
Code:
+ test -f /usr/sbin/cron
+ PIDFILE=/var/run/crond.pid
+ '[' -e /etc/cron.pid ']'
+ '[' -r /etc/default/cron ']'
+ . /etc/default/cron
++ READ_ENV=yes
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ '[' yes = yes ']'
+ export LANG LC_ALL LC_CTYPE
+ parse_environment
+ ENV_FILE=none
+ '[' -r /etc/environment ']'
+ ENV_FILE=/etc/environment
+ '[' -r /etc/default/locale ']'
+ ENV_FILE=/etc/default/locale
+ '[' /etc/default/locale = none ']'
+ for var in LANG LC_ALL LC_CTYPE
++ egrep '^[^#]*LANG=' /etc/default/locale
++ tail -n1
++ cut -d= -f2
+ value=de_DE@euro
+ eval LANG=de_DE@euro
++ LANG=de_DE@euro
+ for var in LANG LC_ALL LC_CTYPE
++ egrep '^[^#]*LC_ALL=' /etc/default/locale
++ tail -n1
++ cut -d= -f2
+ value=
+ eval LC_ALL=
++ LC_ALL=
+ for var in LANG LC_ALL LC_CTYPE
++ egrep '^[^#]*LC_CTYPE=' /etc/default/locale
++ tail -n1
++ cut -d= -f2
+ value=
+ eval LC_CTYPE=
++ LC_CTYPE=
+ case "$1" in
+ log_daemon_msg 'Starting periodic command scheduler' crond
+ '[' -z 'Starting periodic command scheduler' ']'
+ log_daemon_msg_pre 'Starting periodic command scheduler' crond
+ :
+ '[' -z crond ']'
+ echo -n 'Starting periodic command scheduler: crond'
Starting periodic command scheduler: crond+ log_daemon_msg_post 'Starting periodic command scheduler' crond
+ :
+ start-stop-daemon --start --quiet --pidfile /var/run/crond.pid --name cron --startas /usr/sbin/cron --
+ log_end_msg 1
+ '[' -z 1 ']'
+ retval=1
+ log_end_msg_pre 1
+ :
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xvt100 '!=' '' ']'
+ '[' xvt100 '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ FANCYTTY=0
+ case "$FANCYTTY" in
+ false
+ RED=
+ YELLOW=
+ NORMAL=
+ '[' 1 -eq 0 ']'
+ '[' 1 -eq 255 ']'
+ /bin/echo -e ' failed!'
failed!
+ log_end_msg_post 1
+ :
+ return 1
+ exit 0
Läuft der Deamon korekt oder was genau heisst das?