|
Home > Archive > Debian Developers > January 2005 > dh_installinit and update-rc.d start vs. restart
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
dh_installinit and update-rc.d start vs. restart
|
|
| W. Borgert 2005-01-29, 7:48 am |
| Hi,
for some kind of CDD I have created a package "X" that changes
another packages "Y" config file (using cfengine) and restarts
the respective daemon. That works well, if I upgrade package
X only or Y only.
Problem: If I upgrade both package X and Y at the same time
the daemon of package Y will be stopped, than X changes the
config, restarts daemon of Y, finally Y tries to start its
daemon, but fails, as it already runs.
If package X would update-rc.d restart in postinst, it would
be perfect, right? Is there a convince dh_installinit to
use "restart" instead of "start" in package X? Are there
other ways to solve such a problem?
Cheers, WB
Btw: Both X and Y use CDBS and debhelper.
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Henrique de Moraes Holschuh 2005-01-29, 7:48 am |
| On Sat, 29 Jan 2005, W. Borgert wrote:
> config, restarts daemon of Y, finally Y tries to start its
> daemon, but fails, as it already runs.
File a serious bug against package Y. initscripts have to exit with a
successfull status if the daemon is already running.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| W. Borgert 2005-01-29, 5:55 pm |
| Quoting Henrique de Moraes Holschuh <hmh@debian.org>:
> File a serious bug against package Y. initscripts have to exit with a
> successfull status if the daemon is already running.
OK. As this package Y is not (yet) part of Debian, I just changed
it: I added --oknodo to start-stop-daemon and check for $? -eq 0.
Seems to work, thanks!
Cheers, WB
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|