-
Notifications
You must be signed in to change notification settings - Fork 42
Move pid file to /var/run #100
Comments
👍 |
👍 On Mon, Jun 29, 2015, 6:09 AM Mikhail Zholobov [email protected]
|
👍 |
I think this can be closed now? |
I didn't merge to master. So I leave this open until |
Ah ok, gotcha :) I don't normally see cookbooks using release branches, and hadn't realized. |
4.0.0 (When Released) I am not sure how not to break other people deployment with the new cookbook. |
One possibility might be to have complex logic in the cookbook until a major release (to support all use-cases), but then make it known (via chef run warnings, etc) that the attributes or approaches will be deprecated in X number of months (or whatever seems fair)? EDIT: Or of course, people could always stick with the old cookbook -- maybe we shouldn't wait up on them anyhow. I guess how far we bend over to support those specific users (who want to latest, but don't have time to upgrade their whole infra) depends on how many people are using the cookbook...? |
Maybe we check if the user installed mysql then use the mysql path? |
Hm. You mean check the run list? I think the way I've seen is to do some sort of |
Merged! |
We should move the
/opt/atlassian/stash/work/catalina.pid
to/var/run
It is because we are symlinking
/opt/atlassian/stash
to the latest version of stash. Every time we run the chef script to upgrade stash, it will change the symlink target and failed the stash restart since the service can't find the pid.So the situation is like this:
/opt/atlassian/stash
->/opt/atlassian/stash-3.9.0
the
catalina.pid
is located in/opt/atlassian/stash-3.9.0
We run the cookbooks to update stash, now it points to
/opt/atlassian/stash
->/opt/atlassian/stash-3.10.0
the
catalina.pid
is still located in/opt/atlassian/stash-3.9.0
At the end of cookbook, we restart the stash service. But it fails because it can't find
/opt/atlassian/stash-3.10.0/work/catalina.pid
reference: http://stackoverflow.com/questions/5173636/must-my-pidfile-be-located-in-var-run
The text was updated successfully, but these errors were encountered: