(unknown)
When upgrading or installing we do not want to stop or start the init scripts.
This could break upgrades but also do harmfull stuff we don't want.
Let the sysadmin decide when to (re)start the daemons
PATCH 1/1 debian init: Do not stop or start daemons when installing or upgrading
--- debian/rules | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
debian/rules +1 -1
@@ -98,7 +98,7 @@ binary-arch: build install dh_installexamples dh_install --sourcedir=$(DESTDIR) --list-missing dh_installlogrotate - dh_installinit + dh_installinit --no-start dh_installman dh_lintian dh_link
Signature · 1 line
1.7.5.4
Re: [PATCH] debian init: Do not stop or start daemons when installing or upgrading
Ooh, that would certainly make things less annoying for me as well. Unless that's contrary to some debian policy/best practice, Laszlo?
sage
Quoted 28 lines · Wido den Hollander
Signed-off-by Wido den Hollander <[email protected]>--- debian/rules | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)debian/rules +1
-1@@ -98,7 +98,7 @@ binary-arch: build install dh_installexamples dh_install --sourcedir=$(DESTDIR) --list-missing dh_installlogrotate - dh_installinit + dh_installinit --no-start dh_installman dh_lintian dh_linkSignature · 6 lines
1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] debian init: Do not stop or start daemons when installing or upgrading
Quoted 3 lines · Sage Weil
Ooh, that would certainly make things less annoying for me as well. Unless that's contrary to some debian policy/best practice, Laszlo?
We could also go for "--no-restart-on-upgrade".
I ran into this when upgrading the debs on my machines. The init script would try to stop any running radosgw processes, that failed (none were running), exited non-zero and that broke the prerm script.
But since we are dealing with potentially very important daemons I don't want any init scripts restarting my daemons, I want to do that myself.
Wido
Quoted 33 lines
sage
Quoted 28 lines · Wido den Hollander
Signed-off-by Wido den Hollander<[email protected]>--- debian/rules | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)debian/rules +1
-2@@ -98,7 +98,7 @@ binary-arch: build install dh_installexamples dh_install --sourcedir=$(DESTDIR) --list-missing dh_installlogrotate - dh_installinit + dh_installinit --no-start dh_installman dh_lintian dh_link --1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] debian init: Do not stop or start daemons when installing or upgrading
In reply to Sage WeilQuoted 3 lines · Sage Weil
Ooh, that would certainly make things less annoying for me as well. Unless that's contrary to some debian policy/best practice, Laszlo?
Laszlo, have you been able to look at this yet?
Thanks!
Wido
Quoted 33 lines
sage
Quoted 28 lines · Wido den Hollander
Signed-off-by Wido den Hollander<[email protected]>--- debian/rules | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)debian/rules +1
-2@@ -98,7 +98,7 @@ binary-arch: build install dh_installexamples dh_install --sourcedir=$(DESTDIR) --list-missing dh_installlogrotate - dh_installinit + dh_installinit --no-start dh_installman dh_lintian dh_link --1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] debian init: Do not stop or start daemons when installing or upgrading
Quoted 3 lines · Wido den Hollander
Quoted 2 lines · Sage Weil
Ooh, that would certainly make things less annoying for me as well. Unless that's contrary to some debian policy/best practice, Laszlo?
Will check Debian policy. I think init scripts in other packages use a
variable in /etc/default/<package> like no_restart_on_upgrade . On the other hand, I think init script may check if ceph is running or not. If not, it should not start it. Leaving it running while ceph is upgraded would be a bad idea. You would miss configuration file changes and realize that it broke your node at random times when ceph is restarted for any reason.
Quoted 1 line
Laszlo, have you been able to look at this yet?
Ouch, haven't seen this thread yet. Hope that I can answer in detail
soon.
Laszlo/GCS
Re: [PATCH] debian init: Do not stop or start daemons when installing or upgrading
In reply to Sage WeilQuoted 2 lines · Sage Weil
Ooh, that would certainly make things less annoying for me as well. Unless that's contrary to some debian policy/best practice, Laszlo?
The following change is fine with me. Please commit it sage and I'll do
the same in the next upload.
Quoted 6 lines · Wido den Hollander
Quoted 5 lines
debian/rules +0
-0@@ -98,7 +98,7 @@ binary-arch: build install
Quoted 8 lines
debian/rules binary-arch: build install · line 104
Quoted 8 lines
debian/rules +1
-1dh_installexamples dh_install --sourcedir=$(DESTDIR) --list-missing dh_installlogrotate - dh_installinit + dh_installinit --no-start dh_installman dh_lintian dh_link
Regards,
Laszlo/GCS
Sage Weil
AppliedRe: [PATCH] debian init: Do not stop or start daemons when installing or upgrading
In reply to Wido den HollanderApplied.
Quoted 28 lines · Wido den Hollander
Signed-off-by Wido den Hollander <[email protected]>--- debian/rules | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)debian/rules +1
-1@@ -98,7 +98,7 @@ binary-arch: build install dh_installexamples dh_install --sourcedir=$(DESTDIR) --list-missing dh_installlogrotate - dh_installinit + dh_installinit --no-start dh_installman dh_lintian dh_linkSignature · 6 lines
1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html