From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1399 Path: news.gmane.org!not-for-mail From: Scott Dudley Newsgroups: gmane.comp.sysutils.supervision.general Subject: svc: warning: unable to control .: file does not exist Date: Sat, 31 Mar 2007 13:19:28 -0700 (MST) Message-ID: <1613.12.207.49.151.1175372368.squirrel@mail.sdudley.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1175371112 24060 80.91.229.12 (31 Mar 2007 19:58:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2007 19:58:32 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1636-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Mar 31 21:58:30 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1HXjiV-0008Pf-4T for gcsg-supervision@gmane.org; Sat, 31 Mar 2007 21:58:27 +0200 Original-Received: (qmail 15302 invoked by uid 76); 31 Mar 2007 19:58:47 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 15249 invoked from network); 31 Mar 2007 19:57:05 -0000 X-Authentication-Warning: 122.telesoft.com: apache set sender to scott.sdudley@localhost using -f User-Agent: SquirrelMail/1.4.7-4.fc4 X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV 0.88.4/2979/Fri Mar 30 20:33:23 2007 on 122.telesoft.com X-Virus-Status: Clean X-Spam-Status: No, score=-5.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.6 X-Spam-Checker-Version: SpamAssassin 3.0.6 (2005-12-07) on 122.telesoft.com Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1399 Archived-At: 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.