<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Lowpass,<br>
BTW; if you're trying to debug an init script, try running it
manually with shell debugging:<br>
<blockquote># sh -x /etc/init.d/cyrus-imapd start<br>
</blockquote>
And then post a sanitized version of that here, if you still need
help.<br>
-nic<br>
<br>
<div class="moz-cite-prefix">On 04/28/2015 06:49 PM, lowpass wrote:<br>
</div>
<blockquote
cite="mid:CAKYtSzvLNSu+WZpnQns+fGiXb-k72gg+CWKvEk2_NgG=tcNPVg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Thanks for the quick response, Bron. The symlink is
ok.<br>
<br>
# ls -l /var/run<br>
lrwxrwxrwx 1 root root 4 Oct 18 2014 /var/run ->
/run/<br>
<br>
</div>
I tried creating the dir myself as you suggested:<br>
<br>
# mkdir /run/cyrus<br>
# chown cyrus /run/cyrus/<br>
# service cyrus-imapd start<br>
</div>
[nothing]<br>
<br>
</div>
<div>I tried removing the --quiet flag from the startup script
with same (non) results.<br>
</div>
<div><br>
</div>
What about the pid? As i understand, it's not cyrus that
creates that on startrup. In any case, it's NOT being created.
From /etc/init.d/cyrus-imapd:<br>
<br>
NAME=cyrmaster<br>
PIDFILE="/var/run/${NAME}.pid"<br>
<br>
</div>
I've posted a message on the Ubuntu forum as well, as i've a
feeling the problem is not with cyrus. I was hoping, though,
that another cyrus user might have run into this.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Apr 28, 2015 at 6:55 PM, Bron
Gondwana <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:brong@fastmail.fm" target="_blank">brong@fastmail.fm</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span class="">
<div> </div>
<div>On Wed, Apr 29, 2015, at 08:46 AM, lowpass wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I do have socket and lock dirs under
/var/lib/cyrus but they were last modified several
years ago and seem to be left over from some other
config. Other dirs there have seen more recent
activity. Everything seems to be pointing towards
the socket & lock dirs being created under /run
but there's nothing there.<br>
</div>
</blockquote>
<div> </div>
</span>
<div>/run is a tmpfs which gets created fresh on each
reboot.<br>
</div>
<div> </div>
<div>Cyrus starts as user 'cyrus' and has no permission to
create the directories it needs.<br>
</div>
<div> </div>
<div>Your init script should create the directories - but
if you moved them somewhere other than where the package
expects them to be, then it won't create intermediate
directories for you.<br>
</div>
<div> </div>
<div>So, here's the thing:<br>
</div>
<div> </div>
<div>1) double check that /var/run and /run are the same
place - they're mostly a symlink in recent Debian/Ubuntu
systems. If not, I suggest that you audit your
configuration to be all in /var/run or all in /run
(probably a good idea anyway for more consistency.<br>
</div>
<div> </div>
<div>2) run these commands as root:<br>
</div>
<div> </div>
<div>mkdir /run/cyrus<br>
</div>
<div>chown cyrus /run/cyrus<br>
</div>
<div> </div>
<div>3) either put those commands in a startup script that
runs before Cyrus starts, or edit the init script for
Cyrus - though note that if you edit the init script,
you'll have to re-apply those edits on upgrade.<br>
</div>
<div> </div>
<div>Unfortunately, this isn't something we can fix in the
Cyrus binaries. They try to create the directories, but
they just plain don't have permissions to do so at that
stage of the process.<br>
</div>
<div> </div>
<div>Regards,<br>
</div>
<div> </div>
<div>Bron.<br>
</div>
<div> </div>
<div>
<div>--<br>
</div>
<div>Bron Gondwana<br>
</div>
<div><a moz-do-not-send="true"
href="mailto:brong@fastmail.fm" target="_blank">brong@fastmail.fm</a><br>
</div>
<div> </div>
</div>
<div> </div>
</div>
<br>
----<br>
Cyrus Home Page: <a moz-do-not-send="true"
href="http://www.cyrusimap.org/" target="_blank">http://www.cyrusimap.org/</a><br>
List Archives/Info: <a moz-do-not-send="true"
href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/"
target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br>
To Unsubscribe:<br>
<a moz-do-not-send="true"
href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus"
target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight llc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
219 N. Milwaukee St., Ste. 2A         v. 414.272.4477
Milwaukee, Wisconsin 53202                 f. 414.290.0335
</pre>
</body>
</html>