packages/net/modemmanager/files
Florian Eckert 0b027b131c ModemManager: refactoring procd init script
The way the init script is written now, we get a bad output when calling
the ubus service backend.

ubus call service list "{'verbose':true,'name':'modemmanager'}"
>{
>        "modemmanager": {
>                "instances": {
>                        "instance1": {
>                                "running": true,
>                                "pid": 20511,
>                                "command": [
>                                        "sh",
>                                        "-c",
>                                        ".
>/usr/share/ModemManager/modemmanager.common;    \t
>mkdir -m 0755 -p /var/run/modemmanager;          \t
>mm_cleanup_interfaces;                            \t
>( mm_report_events_from_cache ) >/dev/null 2>&1 & \t
>/usr/sbin/ModemManager"
>                                ],
>                                "term_timeout": 5,
>                                "respawn": {
>                                        "threshold": 3600,
>                                        "timeout": 5,
>                                        "retry": 5
>                                },
>                                "pidfile":"/var/run/modemmanager/modemmanager.pid"
>                        }
>                }
>        }
>}"

I also get the output in the log that the PID file cannot be created.

> daemon.err procd: Failed to remove pidfile: :No such file or directory

The changes in this commit fixes this issues, by moving startup into a
wrapper script.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-12-06 14:49:43 +01:00
..
usr/sbin ModemManager: refactoring procd init script 2021-12-06 14:49:43 +01:00
25-modemmanager-net modemmanager: install common utils in /usr/share/ModemManager 2019-11-27 09:28:10 +01:00
25-modemmanager-tty modemmanager: install common utils in /usr/share/ModemManager 2019-11-27 09:28:10 +01:00
25-modemmanager-usb modemmanager: install common utils in /usr/share/ModemManager 2019-11-27 09:28:10 +01:00
25-modemmanager-wwan modemmanager: add support for wwan subsystem in hotplug 2021-10-19 21:39:26 +02:00
modemmanager.common modemmanager: fix physdev sysfs path detection in PCIe modems 2021-11-12 11:00:04 -08:00
modemmanager.init ModemManager: refactoring procd init script 2021-12-06 14:49:43 +01:00
modemmanager.proto modemmanager: added new proto options 2020-08-13 12:56:31 +03:00