qmail /service/qmail-send: unable to open supervise
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Starting qmail
qmail-send supervise not running
qmail-smtpd supervise not running
------------------------------------
When I type "qmailctl stat" I got:
/service/qmail-send: unable to open supervise/ok: file does not exist
/service/qmail-send/log: unable to open supervise/ok: file does not exist
/service/qmail-smtpd: unable to open supervise/ok: file does not exist
/service/qmail-smtpd/log: unable to open supervise/ok: file does not exist
-------------------------------------------------------
Here is the structure of my "/var/qmail/supervise" directory:
supervise
|-- qmail-send
| |-- log
| | `-- run
| `-- run
`-- qmail-smtpd
|-- log
| `-- run
`-- run
All this tree is owned by the user root and group qmail
All permission in this tree is 755
This is propably not the best solution, but try this script.
You have to change the uid and guid on the qmaild to what you have.
This also require that you have made a tcp.smtp.cdb file. This is used for access control(limit who can use your box as a relay)
If you havent made that file just remove "-x .....".
How do I knwo if svcscan is running and what is it?
I did not entered anything on my inittab
/etc/inittab
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
# Things to run in every runlevel.
ud::once:/sbin/update
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm -nodaemon
This is for reference purposes for those who get the error:
# qmailctl start
qmail-send supervise not running
qmail-smtpd supervise not running
Though the solution for me was simple, it took quite a while to track down.
The problem was during my install of daemontools, I did not want to restart my server (don't like resetting my uptime :-p ), even though the instructions said I should. This caused the problem that 'svscanboot' was not running, though it would have been started after a reboot. Well, I saved my uptime and solved the problem with one simple command:
# svscanboot &
Now when I start and stop qmail I get:
# qmail start
Starting qmail
# qmail stop
Stopping qmail...
qmail-smtpd
qmail-send
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.