Bug#578879: zabbix-server-mysql: init.d script should have Should-Start: mysql in LSB comment header

2010-04-23 Thread Matthias Böttcher
Package: zabbix-server-mysql
Version: 1:1.8.1-1
Severity: normal

Hello,

after reboot zabbix_server runs into an error if zabbix-server-mysql
is configured to use a local mysql database and update-rc.d runs in
its default mode where dependency and runlevel information in the
init.d script LSB comment header is used.

/var/log/zabbix-server/zabbix_server.log:

   646:20100423:105735.613 [Z3001] Connection to database 'zabbix'
failed: [2002] Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)


Possible solution:
The script /etc/init.d/zabbix-server should have in its block # BEGIN
INIT INFO a LSB comment header like:

### BEGIN INIT INFO
...
# Should-Start:  mysql
...
### END INIT INFO


to start after an optionally installed mysql-server.
It doesn't hurt if zabbix-server starts after mysql-server, but it is
necessary if zabbix-server is configured to use a local mysql
database.


With best regards,
Matthias Böttcher

PS.
IMHO the simular dependency handling is necessary for the init.d
script in package zabbix-server-pgsql


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages zabbix-server-mysql depends on:
ii  adduser   3.112  add and remove users and groups
ii  dbconfig-common   1.8.46 common framework for packaging dat
ii  debconf [debconf-2.0] 1.5.30 Debian configuration management sy
ii  fping 2.4b2-to-ipv6-16.1 sends ICMP ECHO_REQUEST packets to
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libcurl3-gnutls   7.20.0-3   Multi-protocol file transfer libra
ii  libiksemel3   1.2-4  C library for the Jabber IM platfo
ii  libldap-2.4-2 2.4.17-2.1 OpenLDAP libraries
ii  libmysqlclient16  5.1.45-1   MySQL database client library
ii  libopenipmi0  2.0.16-1   Intelligent Platform Management In
ii  libsnmp15 5.4.2.1~dfsg-5+b1  SNMP (Simple Network Management Pr
ii  lsb-base  3.2-23 Linux Standard Base 3.2 init scrip

Versions of packages zabbix-server-mysql recommends:
ii  mysql-server   5.1.45-1  MySQL database server (metapackage
ii  mysql-server-5.1 [mysq 5.1.45-1  MySQL database server binaries
ii  snmpd  5.4.2.1~dfsg-5+b1 SNMP (Simple Network Management Pr

Versions of packages zabbix-server-mysql suggests:
ii  logrotate 3.7.8-5Log rotation utility
ii  zabbix-frontend-php   1:1.8.1-1  network monitoring solution - PHP

-- debconf information:
  zabbix-server-mysql/mysql/app-pass: (password omitted)
  zabbix-server-mysql/password-confirm: (password omitted)
  zabbix-server-mysql/mysql/admin-pass: (password omitted)
  zabbix-server-mysql/app-password-confirm: (password omitted)
  zabbix-server-mysql/upgrade-error: abort
  zabbix-server-mysql/dbconfig-reinstall: false
  zabbix-server-mysql/upgrade-backup: true
  zabbix-server-mysql/missing-db-package-error: abort
* zabbix-server-mysql/mysql/admin-user: root
  zabbix-server-mysql/remote/port:
  zabbix-server-mysql/remote/host:
* zabbix-server-mysql/db/dbname: zabbix
  zabbix-server-mysql/dbconfig-remove:
* zabbix-server-mysql/db/app-user: zabbix
  zabbix-server-mysql/database-type: mysql
  zabbix-server-mysql/internal/skip-preseed: false
  zabbix-server-mysql/remove-error: abort
  zabbix-server-mysql/server:
  zabbix-server-mysql/remote/newhost:
  zabbix-server-mysql/purge: false
  zabbix-server-mysql/internal/reconfiguring: false
  zabbix-server-mysql/install-error: abort
  zabbix-server-mysql/passwords-do-not-match:
* zabbix-server-mysql/dbconfig-install: true
* zabbix-server-mysql/mysql/method: unix socket
  zabbix-server-mysql/dbconfig-upgrade: true



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#499516: drbd8-utils: Do not 'invoke-rc.d drbd stop' in prerm script for action 'upgrade'

2008-09-19 Thread Matthias Böttcher
Package: drbd8-utils
Version: 2:8.0.13-2~bpo40+1
Severity: normal

Hello,

the prerm script /var/lib/dpkg/info/drbd8-utils.prm calls 'invoke-rc.d
drbd stop' if the wanted action in $1 is upgrade.
That happens during the upgrade of drbd8-utils.

Therefore all drbd ressources in ascending order are shut down (until
a drbd device for ressource is held open by another process).
If all drbd ressources could shut down the module 'drbd' is removed at last.

The upgrade of drbd8-utils must not affect the state of the drbd ressources.

Regards,

Matthias Böttcher


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages drbd8-utils depends on:
ii  debconf [debconf-2.0]  1.5.11etch2   Debian configuration management sy
ii  libc6  2.3.6.ds1-13etch7 GNU C Library: Shared libraries

drbd8-utils recommends no packages.

-- no debconf information