Article View: news.software.nntp
Article #71710inndstart under daemontools's supervise(8)
From: Andrew Raines
Date: Fri, 27 May 2005 18:57
Date: Fri, 27 May 2005 18:57
46 lines
2498 bytes
2498 bytes
My INN installation works fine, but I'd like to get inndstart
under supervise(8) like nnrpd. Here's my run script:
#!/bin/sh
exec 2>&1
envdir ./env sh -c '
exec softlimit -m "${MEM}" \
setuidgid news \
/usr/local/news/bin/inndstart -P"${PORT}" -f -r
'
After running ./run by hand as root, I see this in news.crit:
inndstart: can't seteuid to 0: Operation not permitted
innd: OVDB: can not open database unless ovdb_monitor is running.
innd: OVDB: ovdb_getlock failed: No such file or directory
innd: SERVER cant open overview method
inndstart has the correct permissions:
$ ls -l ~news/bin/inndstart
-r-sr-x--- 1 root news 188206 Apr 18 10:53 /usr/local/news/bin/inndstart
The manpage for inndstart states:
can't seteuid to %d: %s
(Fatal) Unable to change the effective UID. If
inndstart has the correct permissions (setuid root)
and seteuid to root (UID 0) is failing, this may mean
that your system has seteuid(2) but doesn't have
support for POSIX saved UIDs. If this is the case,
please report this to the INN maintainers.
However, I'm running Debian Sid with a 2.4.27 kernel -- that
has to be one of the most common platforms for running INN.
It must be something I'm doing wrong in the
daemontoolsilization. Any ideas?
Here's a full strace of the `sudo ./run':
<URL: http://paste.lisp.org/display/8633>
Thanks.
--
aa@raines.ws (Andrew A. Raines)
Technical Details
Message-ID:
<umzqgts2a.fsf@raines.ws>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <umzqgts2a.fsf@raines.ws> Subject: inndstart under daemontools's supervise(8) Date: Fri, 27 May 2005 13:57:49 -0500 From: Andrew Raines <aa@raines.ws> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 46 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net aSngSB8W7VvxiOzNlJ0a0gLcu5iaeKkXC4iQgU1agKix+rq/7t X-PGP-Key: http://raines.ws/pubkey.asc Mail-Copies-To: never User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:CsvjhigAW7bHgh5fC+qt/mVMk8w=