diff options
| author | Florian Eckert <fe@dev.tdt.de> | 2021-12-03 15:57:33 +0100 |
|---|---|---|
| committer | Florian Eckert <fe@dev.tdt.de> | 2021-12-06 14:49:43 +0100 |
| commit | 0b027b131c97ec901c3b3dc9211ee434d21291dc (patch) | |
| tree | 16c8336217eaf8096d6da1d5236879aa1400b753 /lang/python/python3/files/python3-package-decimal.mk | |
| parent | 4be2a5b73757eb0037d41da962518eaac4e4d3ac (diff) | |
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>
Diffstat (limited to 'lang/python/python3/files/python3-package-decimal.mk')
0 files changed, 0 insertions, 0 deletions
