Let me try to start this here in more detail.
I think we need a table here to list all desired behavior in the different possible states.
And then look for a solution providing all of that.
I know this is more intense now, but hopefully allows us to fix it just once :-)
(I hope this is monospace for all of you...)
This is what I think you described mitch, please correct me.
Action | Situation | Solution |
Pkg-install | no config, should not start | --no-enable --no-start |
------------|-----------------------------------|-----------------------------------|
Pkg-upgrade | if it runs, do not stop it | --no-enable --no-start |
| because it would stay off | + --no-stop-on-upgrade |
------------|-----------------------------------|-----------------------------------|
Pkg-upgrade | if does not run, do not start | --no-enable --no-start |
------------|-----------------------------------|-----------------------------------|
#3 What do we really want?
Now the problem with that is that just using the predefined `--no-enable --no-start` or the same with `--no-stop-on-upgrade` won't do all you need.
The table should IMHO actually look like (please really correct me if that is wrong):
Action | Situation | Solution |
Pkg-install | no config, should not start | --no-enable --no-start |
------------|-----------------------------------|-----------------------------------|
Pkg-install | config present, e.g. by config | neither of --no-enable --no-start |
| or from old install or any | would be allowed |
| orchestration SW, should start | |
------------|-----------------------------------|-----------------------------------|
Pkg-upgrade | if it runs, restart it to pick up | --no-stop-on-upgrade not allowed |
| the new code, imagine you have a | |
| CVE - you need to restart | |
------------|-----------------------------------|-----------------------------------|
Pkg-upgrade | if not configure, do not touch it | need to check if configured |
------------|-----------------------------------|-----------------------------------|
There might be more, feel free to add them to help any sponsor to think with you about it.
#2 What do we want
Let me try to start this here in more detail.
I think we need a table here to list all desired behavior in the different possible states.
And then look for a solution providing all of that.
I know this is more intense now, but hopefully allows us to fix it just once :-)
(I hope this is monospace for all of you...)
This is what I think you described mitch, please correct me.
Action | Situation | Solution | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- | on-upgrade | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- |
Pkg-install | no config, should not start | --no-enable --no-start |
-------
Pkg-upgrade | if it runs, do not stop it | --no-enable --no-start |
| because it would stay off | + --no-stop-
-------
Pkg-upgrade | if does not run, do not start | --no-enable --no-start |
-------
#3 What do we really want?
Now the problem with that is that just using the predefined `--no-enable --no-start` or the same with `--no-stop- on-upgrade` won't do all you need.
The table should IMHO actually look like (please really correct me if that is wrong):
Action | Situation | Solution | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- | on-upgrade not allowed | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- | -----|- ------- ------- ------- ------- ------| ------- ------- ------- ------- ------- |
Pkg-install | no config, should not start | --no-enable --no-start |
-------
Pkg-install | config present, e.g. by config | neither of --no-enable --no-start |
| or from old install or any | would be allowed |
| orchestration SW, should start | |
-------
Pkg-upgrade | if it runs, restart it to pick up | --no-stop-
| the new code, imagine you have a | |
| CVE - you need to restart | |
-------
Pkg-upgrade | if not configure, do not touch it | need to check if configured |
-------
There might be more, feel free to add them to help any sponsor to think with you about it.