You are not logged in.
Hi, I use Ceres with OpenRC.
For mail on console, I installed OpenSMTPD package and use without any problem.
But during the boot, OpenSMTPD not starts. I need to start it on the console myself.
It's not a problem with my config; in fact, when I start myself, it runs correctly, and can send emails.
Any idea?
Offline
Check the enabled services with
rc-update
If it's not listed then try to add it with
rc-update add opensmtpd
Brianna Ghey — Rest In Power
Offline
rc-update | grep opensmtpd
opensmtpd | default
???
Offline
Can we see the entire (un-grep'd) output? I only use OpenRC with Alpine Linux so I'm not sure how Devuan order their services.
Otherwise check the logs for any clues.
Brianna Ghey — Rest In Power
Offline
y!
see that:
# rc-update
alsa-utils | sysinit
anacron | default
apparmor | sysinit
avahi-daemon | default
bootlogd | sysinit
bootlogs | default recovery
bootmisc.sh | sysinit
brightness | sysinit
cgroups | sysinit
checkfs.sh | sysinit
checkroot-bootclean.sh | sysinit
checkroot.sh | sysinit
console-setup.sh | default
cron | default
cups | default
cups-browsed | default
dbus | default
elogind | default
eudev | sysinit
hddtemp | default
hostname.sh | sysinit
hwclock.sh | sysinit
keyboard-setup.sh | sysinit
killprocs | recovery
kmod | sysinit
lm-sensors | sysinit
mount-configfs | sysinit
mountall-bootclean.sh | sysinit
mountall.sh | sysinit
mountdevsubfs.sh | sysinit
mountkernfs.sh | sysinit
mountnfs-bootclean.sh | sysinit
mountnfs.sh | sysinit
network-manager | default
networking | sysinit
opensmtpd | default
pppd-dns | sysinit
procps | sysinit
pulseaudio-enable-autospawn | default
rc.local | default
rmnologin | default
rsync | default
rsyslog | default
saned | default
savecache | off
sendsigs | off
single | recovery
slim | default
smartmontools | default
stop-bootlogd | default
stop-bootlogd-single | sysinit
sudo | default
umountfs | off
umountnfs.sh | off
umountroot | off
urandom | sysinit
uuidd | default
wicd | default
x11-common | sysinit
I found nothing on the logs.
Last edited by PengouinPdt (2020-11-22 09:35:18)
Offline
I found nothing on the logs.
Which logs did you check? Perhaps you should upload them to a pastebin and share the link here so that we can check to see if you missed anything.
If I had to guess I would suggest that the problem lies here:
network-manager | default
^ That starts on the same runlevel as Opensmtpd so it might be running too late and causing the problem.
Perhaps try ifupdown (ie, /etc/network/interfaces & /etc/init.d/networking) instead of NetworkManager, that starts at the sysinit runlevel and so would ensure that the network is up before Opensmtpd starts.
See interfaces(5) & https://wiki.debian.org/WiFi/HowToUse#W … d_WPA2-PSK for the configuration methods.
Brianna Ghey — Rest In Power
Offline
Which log? /var/log/daemon, /var/log/messages, /var/log/mail.log!
Actually, I set opensmtpd on the runlevel sysinit. Wait'n see.
If not run correctly, I will use interfaces(5). I prefere than Network Manager; interfaces are more simpliest or easy to configure.
Offline
Which log?
No idea, sorry. FWIW the systemd journal is excellent for stuff like this. *dives for cover*
Brianna Ghey — Rest In Power
Offline
I found one information on /var/log/boot. That's help me!
Offline
Have you tried turning on logging in OpenRC?
In /etc/rc.conf you may find a line :-
#rc_logger="NO"
change that to
rc_logger="YES"
and you should get the logging as OpenRC does its stuff, in /var/log/rc.log, although the location can also be changed in /etc/rc.conf.
Also the command rc-status should show you what state each service is in.
Geoff
Offline
It was very simple. When I configure the smtpd file, for my needs, I chmoded my secret files on 0600. It was one error, because the group is opensmtpd. After chmoded at 0640, openstmpd can read it during the boot! ;-)
---
Another detail: I migrated to Devuan from Linux Mint. But, on LM, with have the account ciffred by ecrypts tools.
Before, when I was on Debian Sid, I had not my ciffred personal home. My secret files for opensmtpd is on my home.
Now, due to ciffred home, I put the secret file in other place, that can be read by system and service
(thanks to the boot log than help me)
Last edited by PengouinPdt (2020-11-28 08:44:41)
Offline