Package: dpkg Version: 1.16.8 Severity: normal Dear Maintainer,
I try to understant I problem I have with one of my package tango-db this package provide a service started with the start-stop-daemon command start-stop-daemon --start --quiet --chuid tango:tango --background\ --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS \ || return 2 as you can see I change the user and the group before launching it with --chuid my daemon then connect to a mysql database where it can access a tango table. no when I do a invoke-rc.d tango-db start, I got this error message (I removed the --bacground for this purpose, but the result is the same with) root@mordor:/etc/init.d# invoke-rc.d tango-db start main(): arrived Received a CORBA::Exception Tango exception Severity = ERROR Error reason = CANNOT_CONNECT_MYSQL Desc : Failed to connect to TANGO database (error = Access denied for user 'picca'@'localhost' (using password: NO)) Origin : DataBase::init_device() Exiting as you can see the user is picca@localhost instead of tango@localhost (I became root using the su command to invoke the init script) now If I log on a tty as root and type invoke-rc.d tango-db start everythings went fine (I check that this time that my daemon is connecting with the write tango@localhost) So my question is why this wrong user logging, start-stop-daemon was supposed to change it for the tango user. ??? the only difference I see is this su logging. thanks for your help Frederic -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.2.0-3-486 Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-4 ii libc6 2.13-35 ii liblzma5 5.1.1alpha+20120614-1 ii libselinux1 2.1.9-5 ii tar 1.26-4 ii zlib1g 1:1.2.7.dfsg-13 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.9.7.4 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org