Add command 'chmod +x /etc/init.d/nginx'.