The officially official Devuan Forum!

You are not logged in.

#1 2020-11-20 15:05:09

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
Website

[Ceres + OpenRC] Opensmtpd not start during boot

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

#2 2020-11-20 18:03:35

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

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

#3 2020-11-21 12:50:27

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

rc-update | grep opensmtpd
            opensmtpd |      default

???

Offline

#4 2020-11-21 17:51:55

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

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

#5 2020-11-21 19:52:39

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

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

#6 2020-11-22 15:14:33

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

PengouinPdt wrote:

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:

PengouinPdt wrote:
      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

#7 2020-11-22 16:25:34

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

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. tongue

Offline

#8 2020-11-24 19:08:23

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

PengouinPdt wrote:

Which log?

No idea, sorry. FWIW the systemd journal is excellent for stuff like this. *dives for cover*


Brianna Ghey — Rest In Power

Offline

#9 2020-11-24 22:31:40

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

I found one information on /var/log/boot. That's help me!

Offline

#10 2020-11-26 13:52:32

Geoff 42
Member
Registered: 2016-12-15
Posts: 461  

Re: [Ceres + OpenRC] Opensmtpd not start during boot

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

#11 2020-11-28 00:19:45

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
Website

Re: [Ceres + OpenRC] Opensmtpd not start during boot

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 tongue

(thanks to the boot log than help me) big_smile

Last edited by PengouinPdt (2020-11-28 08:44:41)

Offline

Board footer