Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
frcon no ejecuta procesos pendientes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 707
Location: Sota algun pi o alzina...

PostPosted: Sun Oct 02, 2016 12:52 pm    Post subject: frcon no ejecuta procesos pendientes Reply with quote

buenas, segun tengo entendido y que es una característica de fcron , detecta y ejecuta procesos programados sino se ejecutaron porque el sistema estaba apagado (run jobs at fcron's startup if they should have been run during system down time).

pero en mi caso no ocurre así, quizás este haciendo algo mal o lo haya configurado bien.

Code:
 ~ $ fcrontab -l
2016-10-02 14:50:12  INFO listing papu's fcrontab
0   12  *     *  mon           rm -rf ~/.cache/* ; sudo eclean -d distfiles ; sudo eclean -d packages
30  1   */3   *   *            sudo rsync -aAXHSb --delete --backup-dir=/mnt/sources/backup_$(date +%d%m%y%H%M) --exclude-from=/home/papu/exclou_rsync / /mnt/sources/BCKUP_ARA/
0   0   */10  *   *            sudo updatedb


¿alguien usa fcron o sabe que puede estar ocurriendo?

muchas gracias :roll:
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470


Last edited by papu on Sun Oct 02, 2016 9:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1520

PostPosted: Sun Oct 02, 2016 7:34 pm    Post subject: Reply with quote

Creo que tienes que prefijar las líneas con &bootrun. Por ejemplo:
Code:
&bootrun 0 12 * * mon rm -rf ~/.cache/* ; sudo eclean -d distfiles ; sudo eclean -d packages
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 707
Location: Sota algun pi o alzina...

PostPosted: Mon Oct 03, 2016 2:05 am    Post subject: Reply with quote

quilosaq wrote:
Creo que tienes que prefijar las líneas con &bootrun. Por ejemplo:
Code:
&bootrun 0 12 * * mon rm -rf ~/.cache/* ; sudo eclean -d distfiles ; sudo eclean -d packages


aja desconocia esa opción parece que funciona diferente el fcrontab del crontab


¿ solo para suspensión/hibernación no pone nada de apagado ¿o se sobreentiende tambíen apagado?
Code:
bootrun, b
    boolean(false)
    Run an &-line at fcron's startup (or system's resume after suspend/hibernation) if it should have run during system down time.



¿esto quiere decir que si pongo !bootrun al final seria equivalente a poner &bootrun en cada linea?
Code:
Options

The options can be set either for every line below the declaration or for an individual line. In the first case, the setting is done on a whole line immediately after an exclamation mark (!), while it is done after a "&", a "%" or a "@" depending on the type of scheduling in the second case. Note that an option declaration in a schedule overrides the global declaration of that same option.


0   12  *      *  mon        rm -rf ~/.cache/* ; sudo eclean -d distfiles ; sudo eclean -d packages
30  1   */3    *   *         sudo rsync -aAXHSb --delete --backup-dir=/mnt/sources/backup_$(date +%d%m%y%H%M) --exclude-from=/home/papu/exclou_rsync / /mnt/sources/BCKUP_ARA/
0   0   */10   *   *         sudo updatedb
!bootrun



:wink:
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1520

PostPosted: Mon Oct 03, 2016 11:46 pm    Post subject: Reply with quote

papu wrote:
...
¿ solo para suspensión/hibernación no pone nada de apagado ¿o se sobreentiende tambíen apagado?
...
Code:
bootrun, b
    boolean(false)
    Run an &-line at fcron's startup (or system's resume after suspend/hibernation) if it should have run during system down time.


También funciona después de un apagado siempre que esté configurado que fcron se inicie durante el arranque.


papu wrote:
...
¿esto quiere decir que si pongo !bootrun al final seria equivalente a poner &bootrun en cada linea?
Code:
Options

The options can be set either for every line below the declaration or for an individual line. In the first case, the setting is done on a whole line immediately after an exclamation mark (!), while it is done after a "&", a "%" or a "@" depending on the type of scheduling in the second case. Note that an option declaration in a schedule overrides the global declaration of that same option.


0   12  *      *  mon        rm -rf ~/.cache/* ; sudo eclean -d distfiles ; sudo eclean -d packages
30  1   */3    *   *         sudo rsync -aAXHSb --delete --backup-dir=/mnt/sources/backup_$(date +%d%m%y%H%M) --exclude-from=/home/papu/exclou_rsync / /mnt/sources/BCKUP_ARA/
0   0   */10   *   *         sudo updatedb
!bootrun


No. La opción tiene efecto en las líneas que haya a partir de ella, no en las anteriores:
Code:

!bootrun
 0 12   *  * mon rm -rf ~/.cache/* ; sudo eclean -d distfiles ; sudo eclean -d packages
30  1 */3  *   * sudo rsync -aAXHSb --delete --backup-dir=/mnt/sources/backup_$(date +%d%m%y%H%M) --exclude-from=/home/papu/exclou_rsync / /mnt/sources/BCKUP_ARA/
 0  0 */10 *   * sudo updatedb
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 707
Location: Sota algun pi o alzina...

PostPosted: Mon Oct 10, 2016 10:35 am    Post subject: Reply with quote

bien ahora parece que si que funciona y si obviamente tengo fcron como servicio en openrc.
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum