The officially official Devuan Forum!

You are not logged in.

#1 2024-01-31 06:55:53

deepforest
Member
Registered: 2020-03-24
Posts: 319  

[SOLVED] OpenRC warning during screen log at rebooting or turning off pc

Just curious where is source of this message?
I do not find it at /var/log

Action 'stop' is meaningless for this init script ... (warning)

Previously
-i am disable and remove Apparmor
-change Slim to LightDM

root@home:/home/freeartist-devuan# rc-status --servicelist
 umountroot                                                                                                                                                                     [  started  ]
 umountfs                                                                                                                                                                       [  started  ]
 mountkernfs.sh                                                                                                                                                                 [  started  ]
 eudev                                                                                                                                                                          [  started  ]
 mountdevsubfs.sh                                                                                                                                                               [  started  ]
 bootlogd                                                                                                                                                                       [  started  ]
 hostname.sh                                                                                                                                                                    [  started  ]
 keyboard-setup.sh                                                                                                                                                              [  started  ]
 checkroot.sh                                                                                                                                                                   [  started  ]
 checkfs.sh                                                                                                                                                                     [  started  ]
 checkroot-bootclean.sh                                                                                                                                                         [  started  ]
 mountall.sh                                                                                                                                                                    [  started  ]
 mountall-bootclean.sh                                                                                                                                                          [  started  ]
 pulseaudio-enable-autospawn                                                                                                                                                    [  started  ]
 hwclock.sh                                                                                                                                                                     [  started  ]
 urandom                                                                                                                                                                        [  started  ]
 procps                                                                                                                                                                         [  started  ]
 networking                                                                                                                                                                     [  started  ]
 mountnfs.sh                                                                                                                                                                    [  started  ]
 mountnfs-bootclean.sh                                                                                                                                                          [  started  ]
 umountnfs.sh                                                                                                                                                                   [  started  ]
 rsyslog                                                                                                                                                                        [  started  ]
 gpm                                                                                                                                                                            [  started  ]
 sendsigs                                                                                                                                                                       [  stopped  ]
 acpid                                                                                                                                                                          [  started  ]
 dbus                                                                                                                                                                           [  started  ]
 avahi-daemon                                                                                                                                                                   [  started  ]
 x11-common                                                                                                                                                                     [  started  ]
 lightdm                                                                                                                                                                        [  started  ]
 anacron                                                                                                                                                                        [  started  ]
 bootlogs                                                                                                                                                                       [  started  ]
 console-setup.sh                                                                                                                                                               [  started  ]
 cron                                                                                                                                                                           [  started  ]
 cups                                                                                                                                                                           [  started  ]
 cups-browsed                                                                                                                                                                   [  started  ]
 elogind                                                                                                                                                                        [  started  ]
 network-manager                                                                                                                                                                [  started  ]
 openvpn                                                                                                                                                                        [  started  ]
 osspd                                                                                                                                                                          [  started  ]
 pcscd                                                                                                                                                                          [  started  ]
 sudo                                                                                                                                                                           [  started  ]
 rmnologin                                                                                                                                                                      [  started  ]
 saned                                                                                                                                                                          [  started  ]
 slim                                                                                                                                                                           [  started  ]
 tor                                                                                                                                                                            [  started  ]
 stop-bootlogd                                                                                                                                                                  [  started  ]
 kmod                                                                                                                                                                           [  started  ]
 savecache                                                                                                                                                                      [  stopped  ]
 bootmisc.sh                                                                                                                                                                    [  started  ]
 killprocs                                                                                                                                                                      [  stopped  ]
 speech-dispatcher                                                                                                                                                              [  stopped  ]
 alsa-utils                                                                                                                                                                     [  started  ]
 stop-bootlogd-single                                                                                                                                                           [  started  ]
 lm-sensors                                                                                                                                                                     [  started  ]
 agetty                                                                                                                                                                         [  stopped  ]
 reboot                                                                                                                                                                         [  stopped  ]
 mount-configfs                                                                                                                                                                 [  started  ]
 cgroups                                                                                                                                                                        [  started  ]
 brightness                                                                                                                                                                     [  started  ]
 single                                                                                                                                                                         [  stopped  ]
 halt                                                                                                                                                                           [  stopped  ]
 rc.local                                                                                                                                                                       [  started  ]
root@home:/home/freeartist-devuan# 
root@home:/home/freeartist-devuan# rc-update
                acpid |      default                                        
           alsa-utils |                                              sysinit
              anacron |      default                                        
         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
                  gpm |      default                                        
          hostname.sh |                                              sysinit
           hwclock.sh |                                              sysinit
    keyboard-setup.sh |                                              sysinit
            killprocs |                            recovery                 
                 kmod |                                              sysinit
              lightdm |      default                                        
           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
              openvpn |      default                                        
                osspd |      default                                        
                pcscd |      default                                        
               procps |                                              sysinit
 pulseaudio-enable-autospawn |      default                                        
             rc.local |      default                                        
            rmnologin |      default                                        
              rsyslog |      default                                        
                saned |      default                                        
            savecache |                        off                          
             sendsigs |                        off                          
               single |                            recovery                 
                 slim |      default                                        
        stop-bootlogd |      default                                        
 stop-bootlogd-single |                                              sysinit
                 sudo |      default                                        
                  tor |      default                                        
             umountfs |                        off                          
         umountnfs.sh |                        off                          
           umountroot |                        off                          
              urandom |                                              sysinit
           x11-common |                                              sysinit
root@home:/home/freeartist-devuan# 

Last edited by deepforest (2024-01-31 06:57:42)

Offline

#2 2024-01-31 09:45:31

aluma
Member
Registered: 2022-10-26
Posts: 592  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@deepforest
I don’t know anything about OpenRC, but in my opinion there is something superfluous here
Running services

  lightdm |      default 
   slim |      default  

Last edited by aluma (2024-01-31 09:56:03)

Offline

#3 2024-01-31 16:23:45

Andre4freedom
Member
Registered: 2017-11-15
Posts: 148  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

That's right, it makes sense to remove the slim package after switching to lightdm (which I recommend anyway).
For the shutdown warning message, I have that one too, I just ignore it. It's not an error.
Another service that makes no sense to me is anacron, since it mostly holds up the shutdown process. Cron is installed by default and it serves my needs well.
I just disabled it:

sudo rc-update delete anacron

Removing apparmor can be sensible too, if you install applications foreign to the specific distribution.
BTW I use OpenRC and I'm very happy with it.
I hope it helps a bit. Greetings.

Offline

#4 2024-01-31 17:27:36

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

I don’t know anything about OpenRC, but in my opinion there is something superfluous here
Running services

Yes, i am try several variants, disable, stop, enable, slim all the same warning.
Also i do not know why slim is enabled if i do dpkg-reconfigure and select lightdm default dm?

Offline

#5 2024-01-31 17:32:53

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

For the shutdown warning message, I have that one too, I just ignore it. It's not an error.

Thanks, yes, it just warning, but previously i have no this message. Curious where can be source of this warning? I cant find it at logs.

Removing apparmor can be sensible too, if you install applications foreign to the specific distribution.

So this warning can be shown after removing apparmor? How resolve this?

Offline

#6 2024-01-31 17:40:43

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

i cant google warning message, but here Bard answer about it
https://bard.google.com/share/87cbfc7ddb5a

Offline

#7 2024-01-31 17:53:42

Andre4freedom
Member
Registered: 2017-11-15
Posts: 148  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@deepforest
the message in question comes from this init script: /etc/init.d/kmod
This script is not started by OpenRC in my system, but other scripts call it. (eudev, mount-configfs)
I wouldn't worry about the message, it's not related to slim or apparmor.

To remove slim:

$ sudo apt remove slim

Good luck!

Offline

#8 2024-01-31 21:25:18

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 602  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

I agree with Andre4freedom. I also get an error message that a service has no stop. But it does not affect the general operation of my 'stable' system.

I also use open-rc but with sddm with kde5/plasma.

I also turn off all services I do not want to start at boot, like mail, printing, brail and other accessibility apps, like speak and screen-readers..

The bleeding edge is exciting, I used to live there too.


pic from 1993, new guitar day.

Offline

#9 2024-02-01 20:33:23

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@Andre4freedom
@GlennW
Thanks for reply)

I wouldn't worry about the message, it's not related to slim or apparmor

Revert back to slim from lightdm,
now shutdown log looks bit different than with lightdm, and no any warnings, thanks

Last edited by deepforest (2024-02-01 20:37:07)

Offline

#10 2024-02-01 20:42:17

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

But why i cant find
Action 'stop' is meaningless for this init script ... (warning)
at any logs?
May be this message is related to lightdm? Where i can find ldm shutdown logs?
Why usung lightdm shutdown screen log looks different than slim log?

Offline

#11 2024-02-01 20:48:58

aluma
Member
Registered: 2022-10-26
Posts: 592  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

.xsession-errors?

P.S. I apologize, it was extremely inconvenient to type the text.
Look at this file in your home folder. Usually there is a log manager there, at least in my Trinity.

Last edited by aluma (2024-02-02 11:51:35)

Offline

#12 2024-02-04 03:15:06

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

i have seen in .xsession-errors but not find this warning
is there command for parsing all system logs to find this warning?

Last edited by deepforest (2024-02-04 03:17:37)

Offline

#13 2024-02-04 12:17:53

aluma
Member
Registered: 2022-10-26
Posts: 592  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

is there command for parsing all system logs to find this warning?

The log is a regular text file; any editor will find what you are looking for. Some DEs have utilities for viewing system files, the only benefit they provide is that the root password must be entered once to view all of them.

Or is it time to learn
https://www.howtogeek.com/496056/how-to … -on-linux/

Offline

#14 2024-02-04 17:18:23

chris2be8
Member
Registered: 2018-08-11
Posts: 273  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

When does the Action 'stop' is meaningless for this init script ... (warning) message come out?
If it appears on screen while you are booting or shutting down what messages appear before and after it.
On my (old) system cd /etc/init.d/ and grep meaningless * returned:
kmod:  log_warning_msg "Action '$1' is meaningless for this init script"

So looking in /etc/init.d/kmod might help. But do check as above to see if any other script could be generating it.

Offline

#15 2024-02-05 16:37:29

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@chris2be8
Thanks for helpful reply! I here have same as you. And what next?

freeartist-devuan@home:/etc/init.d$ grep meaningless *
kmod:  log_warning_msg "Action '$1' is meaningless for this init script"
freeartist-devuan@home:/etc/init.d$ ./kmod
Usage: ./kmod start.

freeartist-devuan@home:/etc/init.d$ ./kmod start
Loading kernel module lp.
Loading kernel module ppdev.
Loading kernel module parport_pc.
Loading kernel module cuse.
freeartist-devuan@home:/etc/init.d$ 

What is kmod?
And why i see this warning only at lightdm but no at slim?
Action 'stop' is meaningless for this init script ... (warning)

Last edited by deepforest (2024-02-05 16:44:50)

Offline

#16 2024-02-05 17:06:32

chris2be8
Member
Registered: 2018-08-11
Posts: 273  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

Exactly when does that message come out? Is it when you boot the system, log on, log off or shut it down?

less /etc/init.d/kmod should tell you what kmod is (unless all the comments are missing).

Try this:

ls -l /etc/rc?.d/*kmod*
lrwxrwxrwx 1 root root 14 May  9  2018 /etc/rcS.d/S09kmod -> ../init.d/kmod

You should get only 1 line, a symlink that tells the OS to run kmod start when bringing the system up. I suspect you have a stop link somewhere (it will be probably named something like K09kmod).

For belt and braces try ls -l /etc/rc?.d/ | grep kmod which searches the destination of the symlink. If still stuck grep meaningless /etc/rc?.d/* in case there is a stray copy of kmod somewhere.

Offline

#17 2024-02-05 18:58:36

aluma
Member
Registered: 2022-10-26
Posts: 592  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@deepforest

What is kmod?...

It turns out somehow undignified and uninteresting.
If you delve into initialization systems, then at least you need to have a complete understanding of how it works, what kind of scripts and links they are.
Maybe start with this? But, of course, you know better...

Offline

#18 2024-02-05 21:45:29

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 602  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

Hi, here are MY most frequently used message lookups...

cat /home/glenn/.xsession-errors | grep -i "(EE)\|(??)|fail \|segfault"
cat /var/log/Xorg.0.log | grep -i "(WW)\|(EE)\|(??)"
cat /var/log/syslog | tail

you may use the same lookups with dmesg,  and swap the filtering around to search for a match of what your looking for.

I also have sys-type logs sent to tty11 & tty12 so I can easily switch to those consoles and see if anything has changed.

I hope this gives you some tips to work with.

all the best, GlennW (aka, GlennsPref)

Last edited by GlennW (2024-02-05 21:45:54)


pic from 1993, new guitar day.

Offline

#19 2024-02-06 17:09:47

chris2be8
Member
Registered: 2018-08-11
Posts: 273  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

You don't need to use cat for any of those commands. Try:

grep -i "(EE)\|(??)|fail \|segfault" /home/glenn/.xsession-errors
grep -i "(WW)\|(EE)\|(??)" /var/log/Xorg.0.log
tail /var/log/syslog 

Which should get you the same results, but slightly faster.

Offline

#20 2024-02-09 12:17:13

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

chris2be8 wrote:

Exactly when does that message come out? Is it when you boot the system, log on, log off or shut it down?

less /etc/init.d/kmod should tell you what kmod is (unless all the comments are missing).

Try this:

ls -l /etc/rc?.d/*kmod*
lrwxrwxrwx 1 root root 14 May  9  2018 /etc/rcS.d/S09kmod -> ../init.d/kmod

You should get only 1 line, a symlink that tells the OS to run kmod start when bringing the system up. I suspect you have a stop link somewhere (it will be probably named something like K09kmod).

For belt and braces try ls -l /etc/rc?.d/ | grep kmod which searches the destination of the symlink. If still stuck grep meaningless /etc/rc?.d/* in case there is a stray copy of kmod somewhere.

Thanks, yes source of warning is string at /etc/init.d/kmod
Action '$1' is meaningless for this init script

freeartist-devuan@home:~$ ls -l /etc/rc?.d/ | grep kmod
lrwxrwxrwx 1 root root 14 Aug 18 23:11 S09kmod -> ../init.d/kmod
freeartist-devuan@home:~$ grep meaningless /etc/rc?.d/*
/etc/rcS.d/S09kmod:  log_warning_msg "Action '$1' is meaningless for this init script"
freeartist-devuan@home:~$ 

Ok. So i must ignore it? And i see this warning only when use lightdm, using slim i do not see it.

Last edited by deepforest (2024-02-09 12:17:47)

Offline

#21 2024-02-09 17:01:33

chris2be8
Member
Registered: 2018-08-11
Posts: 273  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

All I can think of is looking in /etc/rc.local (that gets called at the end of each runlevel, but normally does nothing).

Apart from that I've run out of ideas for what could be calling kmod. So I'd suggest ignoring the message, the script doesn't do anything when called with the stop parameter.

Offline

#22 2024-02-10 19:08:49

deepforest
Member
Registered: 2020-03-24
Posts: 319  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@chris2be8
Thanks you for investigation MrPoirot

Something found here
etc/init.d/rc.local
restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3

#! /bin/sh
### BEGIN INIT INFO
# Provides:          rc.local
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO

PATH=/usr/sbin:/usr/bin:/sbin:/bin

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_start() {
        if [ -x /etc/rc.local ]; then
                [ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
                /etc/rc.local
                ES=$?
                [ "$VERBOSE" != no ] && log_end_msg $ES
                return $ES
        fi
}

do_stop() {
        if [ -x /etc/rc.shutdown ]; then
                [ "$VERBOSE" != no ] && log_begin_msg "Running local shutdown scripts (/etc/rc.shutdown)"
                /etc/rc.shutdown
                ES=$?
                [ "$VERBOSE" != no ] && log_end_msg $ES
                return $ES
        fi
}

case "$1" in
    start)
        do_start
        ;;
    restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
    status)
        # No-op
        exit 0
        ;;
    stop)
        do_stop
        exit 0
        ;;
    *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac

Last edited by deepforest (2024-02-10 19:10:01)

Offline

#23 2024-02-10 22:50:08

aluma
Member
Registered: 2022-10-26
Posts: 592  

Re: [SOLVED] OpenRC warning during screen log at rebooting or turning off pc

@deepforest

Action 'stop' is meaningless for this init script ... (warning)

This is the reaction of the kmod service to an attempt by some other service (program) to stop it.
Kmod is a service for loading kernel modules, and stopping it on a running machine is pointless.
Perhaps there is confusion with the pid of the processes, perhaps something else.
Forget this matter...

Regards.

Offline

Board footer