[Bug 42632] Re: startup script is broken
Bertrand Croq
bertrand.croq at laposte.net
Tue Jun 6 07:00:45 UTC 2006
Here is a fix for the fix :
install -o ${MLDONKEY_USER:-mldonkey} -g "${MLDONKEY_GROUP:-mldonkey}"
-m 755 -d $(dirname $PIDFILE)
This might need to add the MLDONKEY_USER declaration in /etc/defaults
/mldonkey-server, by adding a line in mldonkey-server.postinst where
this file is generated:
MLDONKEY_USER=$run_as_user
But in fact, by trying to start/stop/reinstall this package I have found
bugs in the /etc/init.d script :
- if mldonkey-server is configured at installation so that it doesn't
start at boot time, the package cannot be reconfigured or desinstalled
because the "stop" command doesn't work (it doesn't test if $PIDFILE
exists before using it)
- if mldonkey-server is configured at installation so that it doesn't
start at boot time, the "force-start" command doesn't work because the
/etc/default/mldonkey-server file doesn't contain enough
configuration... shouldn't the postinst script always do a full
configuration ?
--
startup script is broken
https://launchpad.net/bugs/42632
More information about the universe-bugs
mailing list