Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Test both for presence of pid file and status of the running process like this:! Furhan S. Sounds good but I don't understand how the script knows when the process finish up.
If the last process is still running, script exits without starting a new one, otherwise a new script is started and its PID is recorded. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. This is an iframe, to view it upgrade your browser or enable iframe display.
Configuration Examples. Rsync as a daemon. When using Fedora, rsync can be used as a daemon so that multiple clients can directly communicate with it as a central server, in order to house centralized files and keep them synchronized.
The following example will demonstrate running rsync as a daemon over a network socket in the correct domain, and how SELinux expects this daemon to be running on a pre-defined in SELinux policy TCP port. This example will then show how to modify SELinux policy to allow the rsync daemon to run normally on a non-standard port. This example will be performed on a single system to demonstrate SELinux policy and its control over local daemons and processes.
Note that this is an example only and demonstrates how SELinux can affect rsync. Improve this answer. VovaM VovaM 1 1 silver badge 6 6 bronze badges. That post seems to indicate the opposite of what you're suggesting But, the rsync man page says , "The default behavior is to create the temporary files in the receiving directory. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta.
0コメント