Help!

Problem with start-stop-daemon

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PacKaGe RSS
Next:  console-setup 1.18 MIGRATED to testing  
Author Message
picca
External


Since: May 15, 2007
Posts: 14



PostPosted: Wed Aug 08, 2007 2:50 pm    Post subject: Problem with start-stop-daemon
Archived from groups: linux>debian>maint>dpkg (more info?)

Hello

I do not know if I am on the right mailling list for this problem.

Here the problem with start-stop-daemon.

On my package tango on mentors, I need to start a service.
this one need a connection to mysql.

so I uses dbconfig to generate the /var/lib/tango/.my.cnf mode(600) for
a tango (system) user :
tango:x:114:123:Tango Server,,,:/var/lib/tango:/bin/false

All this is ok after the first installation.


In the /etc/init.d/tango-db I have :

DAEMON = /usr/lib/tango/tango5/database
DAEMON_OPTS = "1"
NAME = tango-db
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --chuid tango:tango --background --make-pidfile --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."

but when I start the daemon, it try to connect as root and not as tango
user. what is wrong with --chuid.
(the code of the daemon use a NULL identifier for the user in the
mysql_real_connect method so the mysql connection must use the current
user, I check this by starting the daemon from root and from my
personnal account and it works. The first time it tries to connect as
root@localhot and the second times as picca@localhost)


Did I miss something with start-stop-daemon?

thank you and sorry for the noise if it is not the right mailling list.


Frederic

Ps: even worse

in an xterm

picca@mordor:~$su root
root@mordor:~#invoke-rc.d tango-db start
It tries to connect to mysql as picca@localhost instead of tango@localhost.


in a tty:
after login as root the same invoke-rc.d try to connect as root@localhost.


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
picca
External


Since: May 15, 2007
Posts: 14



PostPosted: Wed Aug 08, 2007 3:00 pm    Post subject: Re: Problem with start-stop-daemon [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 8 Aug 2007 14:40:04 +0200
picca <picca.DeleteThis@synchrotron-soleil.Fr> wrote:

I am using the
Architecture: i386
Version: 1.14.5
of dpkg

when I start by hand the daemon after a su root within a xterm:
root@mordor:~#/usr/lib/tango/tango5/database 1
it tries to connect as root@localhost
but with invock-rc.d ans start-stop-daemon with picca@localhost.

See you

Frederic


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PacKaGe All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum