The officially official Devuan Forum!

You are not logged in.

#1 2024-09-27 22:38:01

Altoid
Member
Registered: 2017-05-07
Posts: 1,562  

[SOLVED] Stranger: how many 'connmen' in /etc/init.d?

Hello:

There seems to be no end to this connman crap ...

While looking at what was going on in my system with respect to this new CUPS / cups-browsed incident, I looked up my running services, just in case.

And came across this:

~$ sudo service --status-all
--- snip ---
 [ + ]  connman
 [ + ]  connman~     # <- now there's *two*?
--- snip ---
~$ 

Not knowing enough about this to be able to say much more than what the [Subject] line says, I went to see what was up at /etc/init.d:

~$ ls -l -1 /etc/init.d
total 356
--- snip ---
-rwxr-xr-x 1 root root  1667 Jul 16 13:12 connman
-rwxr-xr-x 1 root root  1659 May 22 17:36 connman~
~$ 

So ...
Why do I have connman and connman~ in my system's /etc/init.d?
Any idea?

Then, thinking that they may have a different purpose (you never know) I asked diff with a stanza I found would give me the most straightforward answer.

ie: asking diff for just the differences

What did I find?
This:

~$ diff -y -W 180 --suppress-common-lines /etc/init.d/connman /etc/init.d/connman~
### DAEMON_OPTS ###								      |	### DAEMON_OPTS see https://dev1galaxy.org/viewtopic.php?pid=48040#p48040
### see https://dev1galaxy.org/viewtopic.php?pid=48040#p48040			      <
~$ 

Unless I am much mistaken, the difference is negligible/null.
ie: both files contain the same data, the difference being the formatting of a reference / link to information.

~$ cat /etc/init.d/connman
#!/bin/sh

### BEGIN INIT INFO
# Provides:       connman
# Required-Start: $remote_fs $syslog dbus
# Required-Stop:  $remote_fs $syslog dbus
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Short-Description: Connection Manager
### END INIT INFO

### DAEMON_OPTS ###                                                           <- here
### see https://dev1galaxy.org/viewtopic.php?pid=48040#p48040                 <- here        
--- snip ---
~$

vis-a-vis ...

~$ cat /etc/init.d/connman~
#!/bin/sh

### BEGIN INIT INFO
# Provides:       connman
# Required-Start: $remote_fs $syslog dbus
# Required-Stop:  $remote_fs $syslog dbus
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Short-Description: Connection Manager
### END INIT INFO

### DAEMON_OPTS see https://dev1galaxy.org/viewtopic.php?pid=48040#p48040   <- here 
--- snip ---
~$

That being the case, it would seem that one of them should not be there.
I could only find connman~ at /etc/init.d/ while connman was at /etc/init.d/ and all /etc/rcX.d/ instances.

I think that /etc/init.d/connman~ is (most probably) another remnant to be nuked but it is running, at least sudo service --status-all says so.

But I know no more about this than that.

Edit:
It could well be that I have edited /etc/init.d/connman hence the reference.
What seems strange that the usual date and initials I usually leave behind are not there.
But then age does have consequences.  8^°

If so, I have left behind a backup file which (for whatever reason) is not ignored by the system.
Using mc as I always do, I know it will leave a backup file when editing so I will just delete it.

A couple of questions remain:

Why is it connman~ ID'd as a service and then loaded by the system?
Is it that the modifier ie: [ ~ ] is not ignored?

More importantly, how to avoid this happening?
What did I miss when I edited /etc/init.d/connman?

Please advise.

Thanks in advance.

Best,

A.

Last edited by Altoid (2024-09-27 23:38:22)

Offline

#2 2024-09-27 22:48:13

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,236  

Re: [SOLVED] Stranger: how many 'connmen' in /etc/init.d?

Do you use emacs to edit files? Does emacs leave backup files? How are they named? Have you edited /etc/init.d/connman with emacs? Are you wasting space here?

Offline

#3 2024-09-27 23:20:12

Altoid
Member
Registered: 2017-05-07
Posts: 1,562  

Re: [SOLVED] Stranger: how many 'connmen' in /etc/init.d?

Hello:

ralph.ronnquist wrote:

... use emacs to edit files?

No, I have never used emacs.

To tell you the truth, I don't have much of an idea about it save that it is a well known and very difficult to learn text editor.
One over which (in comparison to Vi) long wars have been fought on the old usenet. (?)

Using it is way above my pay grade, something I expect you already know.

ralph.ronnquist wrote:

... emacs leave backup files?
... How are they named?
... edited /etc/init.d/connman with emacs?

Please see above.

Just so you know, I use jed, nano or mc to edit files.

ralph.ronnquist wrote:

Are you wasting space here?

Hmm ... [Not good day, is it?]

So ...
How is the weather in Battery Point this morning?
I hope it is not raining.

Thank you very much for your input.

Best,

A.

Offline

#4 2024-09-27 23:59:17

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,236  

Re: [SOLVED] Stranger: how many 'connmen' in /etc/init.d?

Sorry, I kind of imagined you would put an ounce of thought into the matter. Silly me.

Offline

#5 2024-09-28 00:18:00

Altoid
Member
Registered: 2017-05-07
Posts: 1,562  

Re: [SOLVED] Stranger: how many 'connmen' in /etc/init.d?

Hello:

ralph.ronnquist wrote:

Sorry ...

Quite all right, no problem here.

ralph.ronnquist wrote:

... imagined you would put an ounce of thought ...

Yes ...
Like I wrote earlier, age does have consequences.

Had already posted when I realised what had happened.
But then, I would have never expected for connman~ to be loaded.

ralph.ronnquist wrote:

Silly me.

Don't worry, it will pass.
Soon you'll be your cheerful self again.  ;^ )

Do have a good week-end.

Best,

A.

Offline

Board footer