rsync not running with upstart

Francis.Montagnac at inria.fr Francis.Montagnac at inria.fr
Fri May 3 05:04:05 MDT 2013


Hi.

On Fri, 03 May 2013 11:45:24 +0200 bert wrote:
> When running the script from upstart, rsync exists with a error 14,
>  some error that has something to do ipc codes. (What are ipc codes?)

I think I saw that already. It was a bug in a library that assumes
that stdin stdout stderr are opened.

Try thus to open them in your script, for example:

    #!/bin/bash -p
    exec < /dev/null >& /tmp/backup.log

    rsync all servers
    wait till next day
    exit 0 ## 0 means success here

--
Francis


More information about the rsync mailing list