Comments (6)
If it is random, it could be something with the trap system.
You know because of processes finishing before others.
I am thinking this because I had to do a script which had to run many processes recently and because it is pretty much what Shoreman does, I looked at your code a lot.
But I remember having to fix problems regarding processes not always finishing when I wanted.
I will have a look at what I have done and see if something is different.
from shoreman.
Here is the piece of code I was talking about:
onexit() {
quit-spotify
kill $pid1 &>/dev/null
kill $pid2 &>/dev/null
kill $pid3 &>/dev/null
sleep 1
}
trap onexit SIGINT SIGTERM EXIT
wait
I really don't know if the problem could come from this but I guess it is worth trying.
There are no big differences with your version but like I said, I remember having problems, reading forums, until this version worked well.
I think I had problems with the thing not behaving the same depending on when I call the parent normally or as a background job and stopping it with a "kill %1".
What do you think?
from shoreman.
This seems to have been fixed since #7 was closed, hooray!
from shoreman.
It still failing :( . I don't know actual reason for this particular ticket(I could open new one), but that's because of output checking, every test has: ... shoreman .. | head -n1
so first line is checked for desired output. But the case that there no guarantee that test program which produces output (echo ...
) will produce output before shoreman's output line 00:04:28 example.1 | 'echo "Hello"' started with pid 14163
. @hecticjeff what about using smth. like echo "$output" | grep -q "Hello"
in tests to match output? I could pull request such changes.
from shoreman.
@kucaahbe Hmm that's very weird. Using grep
in the tests sounds like a reasonable approach to me, go for it!
from shoreman.
opened pull request #13
from shoreman.
Related Issues (15)
- Roundup dependency HOT 1
- does not stop running processes on debian stable HOT 2
- Coloring output HOT 2
- Optionally logging each process separately HOT 2
- Starting individual processes HOT 10
- Allow tabs in Procfile HOT 3
- Sending Signals to Child Processes
- Ctrl-C does not kill child processes HOT 4
- Procfile not ending with a line break don't work HOT 3
- Procfile remains open while running shoreman HOT 2
- Add support for multiline strings in .env HOT 2
- does not terminate all others when a single process dies HOT 3
- Doesn't work on linux HOT 8
- tab character shows up at '\t' HOT 1
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 shoreman.