I created an init-script that should push some log files using s3cmd to an Amazon S3 bucket when the system is going down. s3cmd is installed and s3cmd --configure was run as user root and the configuration is OK
When manually executing the init script, it does the job but when it is executed by init during a shutdown, it fails.
What can be the reason? What is different when the init-script is run by init? Maybe it cannot read the /root/.s3cfg file?
Please advise.