tux Posted December 6, 2015 Share Posted December 6, 2015 W tym wypadku t ważne. Tak samo ważne jest aby znak końca linii był UNIX a nie Windows. Quote Link to comment Share on other sites More sharing options...
Guest g01 Posted December 7, 2015 Share Posted December 7, 2015 Jak wpisuje z konsoli /etc/init.d/softcam restart to mi restartuje oscama ale wpis cronie 1 16 * * * /etc/init.d/softcam restart- nie działa wygląda na to że cron jest wyłączony w/etc/init.d/cron wpis jest taki: #!/bin/sh # Graterlia OS # homepage: http://graterlia.xunil.pl # e-mail: nbox@xunil.pl # # skrypt uruchomieniowy Crond # wersja 2014-12-14 . /etc/sysconfig/gfunctions #wczytanie funkcji wspĂłlnych dla skryptĂłw Graterlia scriptname="Graterlia Cron" #nazwa uruchamianego czegoĹ› runname=/var/grun/gcron #plik informujÄ…cy czy uruchomiono, czy nie msginfo="start, stop, restart, status" #informacja o moĹĽliwych parametrach PATH=/sbin:/bin:/usr/sbin:/usr/bin #deklaracja Ĺ›cieĹĽek gstart() { start-stop-daemon -b --start --quiet --exec crond echo "Cron włączony" touch $runname } gstop() { start-stop-daemon --stop --quiet --oknodo --name crond --user 0 if [ -e $runname ]; then rm $runname fi echo "Cron wyłączony" } case "$1" in 'start') startapp ;; 'stop') stopapp ;; 'status') checkapp ;; 'restart') stopapp sleep 1 startapp ;; *) infoparm ;; esac w /var/grun/gcron: jest pusto. Quote Link to comment Share on other sites More sharing options...
tux Posted December 7, 2015 Share Posted December 7, 2015 Co pokaże: ps ax | grep cron Quote Link to comment Share on other sites More sharing options...
Guest g01 Posted December 7, 2015 Share Posted December 7, 2015 Co pokaże: ps ax | grep cron GraterliaOS:~# ps ax | grep cron 1379 ? Ss 0:00 crond 4162 pts/0 S+ 0:00 grep cron GraterliaOS:~# Quote Link to comment Share on other sites More sharing options...
tux Posted December 7, 2015 Share Posted December 7, 2015 Czyli cron działa u Ciebie. Wniosek - coś prawdopodobnie nie tak z wpisem lub sposobem modyfikacji pliku. Quote Link to comment Share on other sites More sharing options...
Guest g01 Posted December 7, 2015 Share Posted December 7, 2015 Po wpisaniu z konsoli crontab -l pokazuje: GraterliaOS:~# crontab -l #The time and date fields are: 45 11 * * * /etc/init.d/softcam restart to wpis musi być dobry. Quote Link to comment Share on other sites More sharing options...
matzg Posted December 7, 2015 Share Posted December 7, 2015 C o sugerujesz? ! Najpierw sugerowałeś że cron się nie uruchamia udowodniono ci że tak nie jest ... teraz kolejny wywód. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.