linux - Google compute engine - how do I mount disk before init scripts that start applications run -


i have google-startup-script mounts disk on boot or restart. unfortunately google-startup-scripts run last during boot process, @ end of bsd init system. result, wildfly server application in /etc/init.d starts before disk mounted.

how can ensure wildfly server starts after disk mounted?

i agree mounting disk fstab not idea. solution, if debian-like distro init.d find wildfly in /etc/init.d i.e: /etc/init.d/wildfire , amend/add $gce_onboot # required-start: line in beginning of script should like:

# required-start: google-startup-scripts xxxx yyyy 

Popular posts from this blog