supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Scott Dudley <scott.sdudley@122.telesoft.com>
To: supervision@list.skarnet.org
Subject: svc: warning: unable to control .: file does not exist
Date: Sat, 31 Mar 2007 13:19:28 -0700 (MST)	[thread overview]
Message-ID: <1613.12.207.49.151.1175372368.squirrel@mail.sdudley.com> (raw)


Please forgive me if this isn't the appropriate forum but I was unable to
locate a general daemontools forum.

I was exposed this week for the first time to both qmail and daemontools. 
I have a customer whose system was compromised and am trying desperately
to get everything back in order.  And no... they had no backup strategy. 
:-(

Qmail is nearly functional with mail being sent and received with minor
caveats.

My sticking point is this... While going through the Life With Qmail
HOWTO, I get to the point of testing the start/stop of qmail via qmailctl.
 Qmailctl stat returns the message:

/service/qmail-send/log: unable to open supervise/ok: file does not exist

I'm then instructed to do the following:

cd /service/qmail-smtpd/log
svc -d .

Which returns:

svc: warning: unable to control .: file does not exist

Here's what the files look like:

[root@monster-isp log]# ls -l /service/qmail-send
lrwxrwxrwx  1 root root 31 Jun 13  2005 /service/qmail-send ->
/var/qmail/supervise/qmail-send
[root@monster-isp log]# ls -lR /var/qmail/supervise/qmail-send
/var/qmail/supervise/qmail-send:
total 20
drwxr-xr-x  2 root root 4096 Mar 31 14:46 log
-rwxr-x--x  1 root root   29 Jun 14  2005 run
drwx------  2 root root 4096 Mar 31 01:45 supervise

/var/qmail/supervise/qmail-send/log:
total 4
-rwxr-x--x  1 root root 88 Mar 31 00:38 run

/var/qmail/supervise/qmail-send/supervise:
total 16
prw-------  1 root root  0 Mar 31 01:45 control
-rw-------  1 root root  0 Jun 14  2005 lock
prw-------  1 root root  0 Jun 14  2005 ok
-rw-r--r--  1 root root 18 Mar 31 01:45 status

I also performed an strace:

[root@monster-isp log]# strace svc -d .
execve("/usr/local/bin/svc", ["svc", "-d", "."], [/* 21 vars */]) = 0
uname({sys="Linux", node="monster-isp.monster-isp.com", ...}) = 0
brk(0)                                  = 0x9855000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=43377, ...}) = 0
old_mmap(NULL, 43377, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fec000
close(3)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\317"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1525032, ...}) = 0
old_mmap(0xa28000, 1223868, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa28000
mprotect(0xb4c000, 27836, PROT_NONE)    = 0
old_mmap(0xb4d000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124000) = 0xb4d000
old_mmap(0xb51000, 7356, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb51000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7feb000
mprotect(0xb4d000, 8192, PROT_READ)     = 0
mprotect(0xa24000, 4096, PROT_READ)     = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7feb8e0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fec000, 43377)               = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open(".", O_RDONLY|O_NONBLOCK)          = 3
chdir(".")                              = 0
open("supervise/control", O_WRONLY|O_NONBLOCK) = -1 ENOENT (No such file
or directory)
write(2, "svc: warning: unable to control "..., 55svc: warning: unable to
control .: file does not exist
) = 55
fchdir(3)                               = 0
exit_group(0)                           = ?

I hope that's not too much for one posting.

If anyone can steer me in the right direction, I would be forever in your
debt.  I'm extremely impressed with what I've seen thus far of both
product and am anxious to learn and begin using both.  Oh to finally say
farewell to sendmail.  :-)

Thanks.


             reply	other threads:[~2007-03-31 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-31 20:19 Scott Dudley [this message]
2007-03-31 21:29 ` Paul Jarc
2007-04-01  0:34   ` Scott Dudley
2007-04-01  0:16     ` Paul Jarc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1613.12.207.49.151.1175372368.squirrel@mail.sdudley.com \
    --to=scott.sdudley@122.telesoft.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).