shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FIFO continuar aberto após término do Script


From: heitor
Subject: FIFO continuar aberto após término do Script
Date: 18 Mar 2015 06:06:53 -0700

Caros,


Estou estudando a possibilidade de utilizar um FIFO em um script pré job de backup para fazer a cópia segura de aplicações específicas (dump de banco, clone de uma VM etc.).

O problema é que o Bacula só inicia o job de backup depois que o pré-script termina, e assim não descobri uma maneira de deixar o FIFO aberto (no bom sentido. lol).

No manual do Bacula existe uma solução para este problema, mas não obtive sucesso: 


"Unfortunately, when Bacula runs a RunBeforeJob, it waits until that script terminates, and if the script accesses the FIFO to write into the it, the Bacula job will block and everything will stall. However, Vladimir Stavrinov as supplied tip that allows this feature to work correctly. He simply adds the following to the beginning of the RunBeforeJob script:

exec > /dev/null"


Tentei executar como daemon de acordo com [1], sem sucesso.

[1] http://webcache.googleusercontent.com/search?q=cache:KdCJ7-JYoFcJ:unix.stackexchange.com/questions/5099/how-do-i-make-a-shell-script-that-sends-output-to-a-process+&cd=1&hl=pt-BR&ct=clnk&gl=br&client=ubuntu-browser

Por isso vim pedir dicas para os oráculos do Shell. =)


Abraços,


Heitor faria


reply via email to

[Prev in Thread] Current Thread [Next in Thread]