equivalent of chkconfig

João M. S. Silva joao.m.santos.silva at gmail.com
Mon Aug 17 15:25:06 UTC 2015


Thanks Oli, it works OK with:

$ cat /etc/init/modemmanager.override
start on starting dbus
stop on stopped dbus

I think network-manager is only needed if you want to establish an 
Internet connection over the HSDPA modem or so.

In this case I only use it to send SMS, etc. so I don't need networking.

On 08/17/2015 03:46 PM, Oliver Grawert wrote:
> hi,
> Am Montag, den 17.08.2015, 15:36 +0100 schrieb João M. S. Silva:
>> Yes, it is:
>>
>> $ dpkg -l|grep network-manager
>> $ dpkg -l|grep modemmanager
>> ii  modemmanager                        1.0.0-2ubuntu1
>>       amd64        D-Bus service for managing modems
>>
>> Thanks Oli, that sounds reasonable. I tried it but:
>>
>> $ service modemmanager status
>> modemmanager stop/waiting
>>
>> $ dmesg |grep -i modemmanager
>> [    2.888050] init: modemmanager main process ended, respawning
>> [    2.923251] init: modemmanager main process ended, respawning
>> (...)
>> [    3.731722] init: modemmanager respawning too fast, stopped
> a wild guess would be that modem-manager uses dbus, so adjust yopur
> "start on" accordingly ... any perhaps it can not work at all without a
> running network-manager, are you sure it can ?
> also look at the upstart job log for your modem-manager job ... they
> live in /var/log/upstart, that should have actual error messages.
>
>>
>> $ cat modemmanager.override
>> # modemmanager - modem manager
>> #
>> # The ModemManager daemon manages the system's mobile broadband connections
>> # for NetworkManager.
>> #
>> # added by jmss
>>
>> description	"modem connection manager"
>>
>> start on startup
>> stop on runlevel [!2345]
>>
> do not put the stuff below into your override, the .conf file already
> covers it ... override files only replace the bits you define. just
> leave the exec and whatnot as it is defined ... you only want start on/
> stop on in your .override ...
>
>> respawn
>>
>> pre-start script
>>       [ -x /usr/sbin/ModemManager ] || stop
>> end script
>>
>> exec /usr/sbin/ModemManager
>>
>
> ciao
> 	oli
>
>

-- 
João M. S. Silva




More information about the Ubuntu-devel-discuss mailing list