Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when auto-starting during server reboot #54

Open
jurgenhaas opened this issue Jul 17, 2015 · 0 comments
Open

Error when auto-starting during server reboot #54

jurgenhaas opened this issue Jul 17, 2015 · 0 comments

Comments

@jurgenhaas
Copy link

When automatically starting a node script that uses promised-io during server start with an upstart script I'm getting the following error:

node_modules/promised-io/promise.js:242
                                                throw error;
                                                      ^
Error: Command failed: 
    at ChildProcess.exithandler (child_process.js:637:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Socket.<anonymous> (child_process.js:956:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

When starting the script later manually, then it works just fine. So I assume that it gets loaded too early and a requirement is missing.

The start script has the following init info:

### BEGIN INIT INFO
# Provides:          mail_listener
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop MailListener built with nodeJS
### END INIT INFO

Is there anything else I need to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant