Skip to main content
Topic: Init script for modemmanager? (Read 766 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Init script for modemmanager?

Hi,
I noticed that while there are ModemManager init scripts for runit and s6 , there seems to be none for OpenRC?
Is that intentional?

Thanks in advance.
Twann


Re: Init script for modemmanager?

Reply #2
It's missing for dinit too.

It is started automatically by dbus file:
Code: [Select]
/usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service
I have a dinit service and I removed that file so I can stop the service.

https://github.com/davmac314/dinit/discussions/224#discussioncomment-6785825
Quote
The S6/runit services are most likely allowing to start it early, but that's probably unnecessary anyway.


Re: Init script for modemmanager?

Reply #4

The lack of ModemManager service is intentional (in dinit's case at least), since it's invoked by NetworkManager via dbus, and thus doesn't need standalone service.

I do plan on making a service for ModemManager (and other various services) and have dbus activate it via the service file instead of directly running the daemon, but this needs to work on all service managers supported by Artix (since if we modify the dbus file, it needs to be service manager-neutral).
now only the dinit guy in artix

 

Re: Init script for modemmanager?

Reply #5
Nice project so you can start/stop/enable/disable the service.

Currently is there a way to stop the "service"? I had to delete the /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service file.

Re: Init script for modemmanager?

Reply #6
Nice project so you can start/stop/enable/disable the service.

Currently is there a way to stop the "service"? I had to delete the /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service file.

Unfortunately no.
You can however make dinit handle the service by creating a new service for ModemManager, keep it disabled and modify the dbus file to run /bin/dinitctl start modemmanager.

This is getting off-topic since this is on the OpenRC subforum so I'm going to stop here.
now only the dinit guy in artix