Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162163 - dev-util/monotone - use of pidof in init script causing problems
Summary: dev-util/monotone - use of pidof in init script causing problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 06:26 UTC by Cameron Brunner
Modified: 2007-05-05 10:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Brunner 2007-01-15 06:26:13 UTC
Using pidof to check if there is already a monotone running causes a problem if tracmtn is used and trac is loaded before monotone and gets a request because it forks a mtn client on the server. This causes the monotone init.d script to think that the daemon is already running and it doesnt fork it. Checking if the mtn that is running belongs to the user that it is told to fork as should be enough to overcome this problem but i dont know enough shell scripting to submit a patch for it.

Reproducible: Always
Comment 1 Cameron Brunner 2007-01-15 06:49:30 UTC
  --pid-file <arg>      record process id of server

is supported by the mtn serve command
Comment 2 Daniel Black (RETIRED) gentoo-dev 2007-01-27 22:22:54 UTC
(In reply to comment #0)
> Using pidof to check if there is already a monotone running causes a problem 

Looking at dev-util/monotone/files/monotone.initd I can't see a pidof usage. It uses --pid-file= in the start function and stop uses the pidfile too.

Can the trac instigation pass its own pid-file arguement to avoid conflict?
Comment 3 Cameron Brunner 2007-05-05 10:36:00 UTC
old init file was in use, no more issues