By the way, I have som trouble running QLMS from Putty.
And starting QLMS service takes a really long time know, or finishing the script takes long the service starts quickly.
But if I end Putty before finishing the script then LMS stops/crash.

I get a bunch of warnings that the commands are using the wrong operators and some line are missing formatting.
I run a QTS 4.2 (the latest version compatible with my system).
Do I miss some packages to be installed or do I need some language settings as that will adjust the command lines and formatting errors?


When starting QLMS I get this message repeating 3 times, in quick sequences...
Code:
/bin/grep: invalid option -- w
BusyBox v1.01 (2021.03.27-04:02+0000) multi-call binary

Usage: grep [-ihHnqvs] PATTERN [FILEs...]

Search for PATTERN in each FILE or standard input.

Options:
        -H      prefix output lines with filename where match was found
        -h      suppress the prefixing filename on output
        -i      ignore case distinctions
        -l      list names of files that match
        -n      print line number with output lines
        -q      be quiet. Returns 0 if result was found, 1 otherwise
        -v      select non-matching lines
        -s      suppress file open/read error messages
Then we look for the last nightly, which works fine.
NOTICE the bad formatting on the last line...
Code:
[.....] Checking is there is a update for LogitechMediaServer.
Preparing the system to run LogitechMediaServer. 
Fixing owner/rights for squeezeboxserver on SlimServer/ !
Fixing owner/rights for squeezeboxserver on SlimServer/ the old way !
Starting LogitechMediaServer in the Background.
\e[41mWaiting for LogitechMediaServer to become ready, can take a few minutes!\e
Then I get the same message as above, repeating 90 times, and it takes a long time...
When it is finally done I get this new error...
Code:
/sbin/log_tool: invalid option -- G
Usage: /sbin/log_tool [OPTION]...
Manipulate event logs in system.

        -h, --help              Display this help and exit.
        -v, --verbose           Enable verbose output.
        -c, --initdb            Initialize the table for event logs.
        -r, --rmdb              Remove the table for event logs.
        -f, --flushdb           Flush all data in the table for event logs.
        -y, --modifydb          Modify column in the table for event logs.
        -b, --maxlog N          Set the max number of logs to N.
        -a, --append MSG        Append MSG into the event log.
                -t, --type [0-2]        Specify the event type.
                -u, --user USER         Specify the username.
                -p, --ip IP             Specify the IP.
                -m, --comp NAME         Specify the computer name.
                -x, --msgid MSGID               Specify the mesage id.
        -q, --query             Query the data of event logs.
                -s, --sort [0-17]       Set the sort type.
                -l, --lower NUM         Set the lower bound.
                                         (NUM >= 0, NUM <= upper)
                -o, --upper NUM         Set the upper bound.
                                         (NUM >= 0, NUM >= lower)
                -e, --filter [0-3]      Specify the filter type.
                -i, --group [0-9]       group by TBL_FIELD.
                -d, --date1 DATE1               Specify the date1 - date2.
                -g, --date2 DATE2               Specify the date1 - date2.
                -u, --user USER         Specify the username.
                -p, --ip IP             Specify the IP.
                -m, --comp NAME         Specify the computer name.
                -k, --keyword KEYWORD           Filter the keyword in log.

Event types:
        0 = Information
        1 = Warning
        2 = Error

Sort types:
        0 = Sort by date in ascending order.
        1 = Sort by date in descending order.
        2 = Sort by time in ascending order.
        3 = Sort by time in descending order.
        4 = Sort by event type in ascending order.
        5 = Sort by event type in descending order.
        6 = Sort by user in ascending order.
        7 = Sort by user in descending order.
        8 = Sort by IP in ascending order.
        9 = Sort by IP in descending order.
        10 = Sort by computer name in ascending order.
        11 = Sort by computer name in descending order.
        12 = Sort by id in ascending order.
        13 = Sort by id in descending order.
        14 = Sort by msgid in ascending order.
        15 = Sort by msgid in descending order.
        16 = Sort by timet in ascending order.
        17 = Sort by timet in descending order.

Report bugs to <nas_rd@qnap.com>
/sbin/log_tool: invalid option -- N
Usage: /sbin/log_tool [OPTION]...
Manipulate event logs in system.

        -h, --help              Display this help and exit.
        -v, --verbose           Enable verbose output.
        -c, --initdb            Initialize the table for event logs.
        -r, --rmdb              Remove the table for event logs.
        -f, --flushdb           Flush all data in the table for event logs.
        -y, --modifydb          Modify column in the table for event logs.
        -b, --maxlog N          Set the max number of logs to N.
        -a, --append MSG        Append MSG into the event log.
                -t, --type [0-2]        Specify the event type.
                -u, --user USER         Specify the username.
                -p, --ip IP             Specify the IP.
                -m, --comp NAME         Specify the computer name.
                -x, --msgid MSGID               Specify the mesage id.
        -q, --query             Query the data of event logs.
                -s, --sort [0-17]       Set the sort type.
                -l, --lower NUM         Set the lower bound.
                                         (NUM >= 0, NUM <= upper)
                -o, --upper NUM         Set the upper bound.
                                         (NUM >= 0, NUM >= lower)
                -e, --filter [0-3]      Specify the filter type.
                -i, --group [0-9]       group by TBL_FIELD.
                -d, --date1 DATE1               Specify the date1 - date2.
                -g, --date2 DATE2               Specify the date1 - date2.
                -u, --user USER         Specify the username.
                -p, --ip IP             Specify the IP.
                -m, --comp NAME         Specify the computer name.
                -k, --keyword KEYWORD           Filter the keyword in log.

Event types:
        0 = Information
        1 = Warning
        2 = Error

Sort types:
        0 = Sort by date in ascending order.
        1 = Sort by date in descending order.
        2 = Sort by time in ascending order.
        3 = Sort by time in descending order.
        4 = Sort by event type in ascending order.
        5 = Sort by event type in descending order.
        6 = Sort by user in ascending order.
        7 = Sort by user in descending order.
        8 = Sort by IP in ascending order.
        9 = Sort by IP in descending order.
        10 = Sort by computer name in ascending order.
        11 = Sort by computer name in descending order.
        12 = Sort by id in ascending order.
        13 = Sort by id in descending order.
        14 = Sort by msgid in ascending order.
        15 = Sort by msgid in descending order.
        16 = Sort by timet in ascending order.
        17 = Sort by timet in descending order.

Report bugs to <nas_rd@qnap.com>
Finally service is started...
NOTICE there are some "garbage", it!\e[0m , on the command line as the script is done...
Code:
LogitechMediaServer 8.2.0-1626678931 is started in the Background on [5323] !   
Please wait a few minutes, before you try to access the LogitechMediaServer webgui through http://192.168.6.3:9001 !                                            

[admin@QNAP2 LogitechMediaServer]$ it!\e[0m