Comments (4)
Because the call to service start is launching a daemon, it won't be opening a port itself. By default, Edward will expect a port to be opened before the process exits.
If you run:
sudo service mongod start
At the command line, is there any output that indicates that mongodb has started successfully? If so, you can use that in a launch check: http://engblog.yext.com/edward/projectconfig/#detecting-successful-launch
from edward.
Thank you @theothertomelliott . I think I can use the port check to verify.
from edward.
Great, let me know if that works out ok.
Which platform are you running on? We could also look into a backend to make it eaiser to start daemons like this in the future.
from edward.
I am running on ubuntu 16.04, the port check not working. The config I'm using is :
"name": "mongo", "commands": { "launch": "sudo service mongod start", "stop" : "sudo service mongod stop" }, "launch_checks": { "ports": [27017] }, "requiresSudo" : true, "watch": { "include": [ "mongo" ] }
from edward.
Related Issues (20)
- Edward stop doesn't actually check running services if it needs to use sudo
- Case insensitive autocomplete
- Support dotenv files HOT 5
- --exclude doesn't work properly with restart? HOT 1
- Imported config files can't import other files
- edward can't start sudo targets if the sudo timeout is set to 0
- Allow launching standalone backended services
- edward tiplog command HOT 4
- Display backend in edward status
- Support for multiple warmup urls
- Request: command(s) to give more info about services
- Provide clear output when a Stop command fails at the runner HOT 1
- restart --tail causes a panic in 1.8.16 HOT 1
- Docker and Go generators are not effectively prioritized HOT 1
- Feature Request: Add optional debug=port parameter HOT 9
- Feature Request: Configurable grace period for stop before SIGKILL HOT 13
- Feature Request: Some form of default path to be used when path field is omittted
- Resolve symlinks when creating client
- More detailed error on "Service or group not found"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edward.