Subject: rc.d, etcupdate and etc...
To: Luke Mewburn <lukem@NetBSD.org>
From: mouss <usebsd@free.fr>
List: tech-userlevel
Date: 12/23/2004 02:34:11
while we're talking about rc.d stuff, I would like the cron things to
stop complaining about "/etc/rc.d/postfix" not being there (I removed it
since I'm using the pkg version. I don't believe an MTA is part o the
base system...)
Funnliy enough, the /etc version of postfix says you can use it to run
the pkg bins, however, I do run pkg scripts, so I don't wanna run the
etc version. (I personally don't think an MTA is part of the base
system, but I'm ready to keep this for myself. of course, cron scripts
send mail to the admin so they need a mailer, but this doesn't justify
having a mail server in the base system, a silly mua would be enough).
also, the rc.d/postfix doesn't support the status command. Wouldn't it
be good to implement unsupprted commands via rc.subr
(I understand that postfix is a set of daemons, but I wanna know if its
master is running or not).
things are funny with some of the pakckages
# usr/pkg/etc/rc.d/amavisd start
Starting amavisd.
ps: pid: No such file or directory ----> [ahuh....]
Pid_file "/var/amavis/amavisd.pid" already exists. Overwriting! --->
[oh do you?]
# /usr/pkg/etc/rc.d/amavisd start
Starting amavisd.
# /usr/pkg/etc/rc.d/amavisd stop
Stopping amavisd.
# psget amavis #psget is a ps/grep alias...
2333 ?? Ss 0:01.65 perl: amavisd (master)
3390 ?? IW 0:00.02 er): amavisd (virgin child) (perl)
23858 ?? IW 0:00.02 er): amavisd (virgin child) (perl)
# /usr/pkg/etc/rc.d/amavisd status
amavisd is not running. [ahem?]
# telnet 127.0.0.1 10024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
QUIT
...
#whoami
root
# /usr/pkg/etc/rc.d/amavisd stop
csh: Permission denied ---> (ahem???)
csh: Trying to start from "/root"
of course this is in the pkg rc.d dir, and isn't the only one (snort
used to need mysqld to be ready -that's a sleep or have other scripts in
between), ..
and if we ignore pkg things, sendmail seems to be parft of the base
system, for some reason:)
cheers
mous