camptocamp / puppet-tomcat

Tomcat puppet module
Apache License 2.0
88 stars 115 forks source link

initscript missing / fail to launch the newly created instance #139

Open pmauduit opened 9 years ago

pmauduit commented 9 years ago

In a catalog run:

==> default: Notice: /Stage[main]/Georchestra::Geoserver/Georchestra::Geoserver::Worker[geoserver0]/Georchestra::Module[geoserver0]/Tomcat::Instance[geoserver0]/Tomcat::Instance::Config[geoserver0]/File[/etc/init.d/tomcat-geoserver0]/ensure: created
==> default: Error: Could not start Service[tomcat-geoserver0]: Execution of '/usr/sbin/service tomcat-geoserver0 start' returned 6: Failed to start tomcat-geoserver0.service: Unit tomcat-geoserver0.service failed to load: No such file or directory.
==> default: Wrapped exception:
==> default: Execution of '/usr/sbin/service tomcat-geoserver0 start' returned 6: Failed to start tomcat-geoserver0.service: Unit tomcat-geoserver0.service failed to load: No such file or directory.
==> default: Error: /Stage[main]/Georchestra::Geoserver/Georchestra::Geoserver::Worker[geoserver0]/Georchestra::Module[geoserver0]/Tomcat::Instance[geoserver0]/Tomcat::Instance::Service[geoserver0]/Service[tomcat-geoserver0]/ensure: change from stopped to running failed: Could not start Service[tomcat-geoserver0]: Execution of '/usr/sbin/service tomcat-geoserver0 start' returned 6: Failed to start tomcat-geoserver0.service: Unit tomcat-geoserver0.service failed to load: No such file or directory.

When connecting to the machine and launching the instance by hand (after the failing puppet run), using service tomcat-geoserve0 start, the instance can be launched with no error.

Is there a missing sync() somewhere, to ensure the init scripts are actually created before trying to launch the instance ?