Hi.
I'd like to start a service 'minidlna' by nice in the script at '/etc/init.d/minidlna'.
How to modify it?
the core line 'service_start /usr/bin/minidlna -f "$MINIDLNA_CONFIG_FILE"'
cannot be
'nice service_start /usr/bin/minidlna -f "$MINIDLNA_CONFIG_FILE"'
niether
'service_start nice /usr/bin/minidlna -f "$MINIDLNA_CONFIG_FILE"'.
Please advice me.
Or you can let me know how to 'renice'.
jow
3
...
procd_set_param nice 19
procd_set_param command /usr/bin/minidlna -f "$MINIDLNA_CONFIG_FILE"
...
hnyman
4
I thought that first, too, but minidlna is not yet using procd:
https://github.com/openwrt/packages/blob/master/multimedia/minidlna/files/minidlna.init
It needs to be converted first to procd.
@Mitchell
you could look into modernising the minidlna package and converting its init script into using procd.