Hey Guys
Neat project. So many awe inspiring open source projects on the internet.
I got one question on the example cron based backup job detailed here:
https://github.com/facebookgo/rocks-strata/blob/master/examples/backup/run.sh
How would this backup job work? I'm not an unix expert, but according to the start-stop-daemon documentation I found, it will prevent a call from starting a new process if a process with the same name is already running is that right?
The way I understand it, because it's running the process as a daemon, wouldn't the call to "backup" return immediately and the run.sh script would attempt to run the 2nd line "delete" straight afterwards while "backup" is still running?
So does that mean if "backup" takes more than a few milliseconds to run, "delete" would never actually get run?
I am only questioning the use of the start-stop-daemon because I need to find an alternative because the process isn't available in amazon linux. To achieve the purpose of avoiding multiple concurrent writes to the same file in S3, wouldn't it be fine to do the 3 strata calls sequentially one after the other in run.sh? When I tested the the strata calls manually, it looked like it was running in the foreground and doesn't return control to the bash console until it is finished. Would this work?
Thanks
Hey Guys
Neat project. So many awe inspiring open source projects on the internet.
I got one question on the example cron based backup job detailed here:
https://github.com/facebookgo/rocks-strata/blob/master/examples/backup/run.sh
How would this backup job work? I'm not an unix expert, but according to the start-stop-daemon documentation I found, it will prevent a call from starting a new process if a process with the same name is already running is that right?
The way I understand it, because it's running the process as a daemon, wouldn't the call to "backup" return immediately and the run.sh script would attempt to run the 2nd line "delete" straight afterwards while "backup" is still running?
So does that mean if "backup" takes more than a few milliseconds to run, "delete" would never actually get run?
I am only questioning the use of the start-stop-daemon because I need to find an alternative because the process isn't available in amazon linux. To achieve the purpose of avoiding multiple concurrent writes to the same file in S3, wouldn't it be fine to do the 3 strata calls sequentially one after the other in run.sh? When I tested the the strata calls manually, it looked like it was running in the foreground and doesn't return control to the bash console until it is finished. Would this work?
Thanks