[SERVER-1492] Upstart script causes server to choke on "--" option Created: 26/Jul/10  Updated: 28/Jun/12  Resolved: 28/Jul/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.5.5, 1.5.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Luke Maurer Assignee: Richard Kreuter (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu Lucid


Operating System: Linux
Participants:

 Description   

The upstart script wasn't working for me, so I tried running the "exec start-stop-daemon" statement manually. I got an error with a usage message; removing the "-" fixed it, and removing "-" from the line in the upstart script fixed the whole problem.



 Comments   
Comment by Richard Kreuter (Inactive) [ 28/Jul/10 ]

Unclear what was going on here, but neither the submitter nor I can reproduce.

Comment by Luke Maurer [ 28/Jul/10 ]

!! Weird. It seems to be working now with the "--". I've restarted since Monday; I'm guessing Upstart got out of sync somehow, maybe? Stale lock or something? It was definitely not running after "sudo start mongodb", and I could never find a good indication why from the logs.

So, yeah. Sorry, false alarm.

Comment by Richard Kreuter (Inactive) [ 28/Jul/10 ]

I can't reproduce the problem, and the start-sop-daemon man page says that the – is how you pass arguments to the daemon program. Could you show any error/usage output you're seeing when the start-stop-daemon invocation fails?

Comment by Luke Maurer [ 26/Jul/10 ]

Sorry, I spoke too soon; thought I'd tested it with "--" gone from the upstart script, but now it always exits with status 3 according to daemon.log (without any other output, including to /var/log/mongodb/mongodb.log)

At any rate, I can say confidently that at the command line the "--" breaks it.

Generated at Thu Feb 08 02:57:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.