Squeezelite boot Startup auto

Hello, I'm green in this, I've managed to get it working by manually activating it from the Luci Startup web interface and the SHH console, but I do not give it with the appropriate commands so that this package starts at boot time, they could help me out thanks information
my english is basic, sorry

Thank you

Model
Comtrend AR-5387un

Architecture
bcm63xx/96328A-1441N1 (0x6328/0xB0)

Firmware Version
OpenWrt 18.06.2 r7676-cddd7b4c77 / LuCI openwrt-18.06 branch (git-19.020.41695-6f6641d)

Squeezelite v1.8.4-743, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving

reboot
logread -e squeezelite
ls -l /etc/rc.d/*squeezelite*
opkg list-installed squeezelite\*
1 Like

Thank you so much for your help, it worked for me

Hello, Yesterday when executing the code provided from putty it seemed all right even make several reboots and the squeezelite started and my server Squeezebox Server detected the router, turn everything off and I went to rest today in the morning, it did not start automatically again. In realization I do not know what I am doing wrong the command that I left in STARTUP LOCAL was "(squeezelite) &" and I checked at the time that it was necessary or when I removed it I stopped working the automatic, after applying its code. In manual mode, some detail works correctly about what I am doing wrong. Thank you

The first step to solve your problem is to perform comprehensive diagnostics.
Right after reboot when you experience the issue, run the commands below and post the output here.

logread -e squeezelite
ls -l /etc/rc.d/*squeezelite*
opkg list-installed squeezelite\*
pgrep -f -a squeezelite
uci show squeezelite

thank you very much for your early attention

results:

root@OpenWrt:~# logread -e squeezelite
root@OpenWrt:~# ls -l /etc/rc.d/*squeezelite*
lrwxrwxrwx    1 root     root            21 May  3 14:27 /etc/rc.d/K1squeezelite -> ../init.d/squeezelite
root@OpenWrt:~# opkg list-installed squeezelite\*
squeezelite-full - 1.8.4-743-2
root@OpenWrt:~# pgrep -f -a squeezelite
root@OpenWrt:~# uci show squeezelite
squeezelite.options=options
squeezelite.options.name='SqueezeWrt'
squeezelite.options.model_name='SqueezeLite'
squeezelite.options.close_delay='0'
squeezelite.options.priority='0'
squeezelite.options.max_sr='0'
squeezelite.options.device='hw:0,0'
squeezelite.options.decoder_auto_conf='1'
squeezelite.options.dsd_over_pcm='0'
squeezelite.options.ircontrol='0'
squeezelite.options.enabled='1'
1 Like

There's no startup symlink, the service seems disabled for some reason.

service squeezelite enable
ls -l /etc/rc.d/*squeezelite*
root@OpenWrt:~# service squeezelite enable
root@OpenWrt:~# ls -l /etc/rc.d/*squeezelite*
lrwxrwxrwx    1 root     root            21 May  3 16:14 /etc/rc.d/K1squeezelite -> ../init.d/squeezelite
lrwxrwxrwx    1 root     root            21 May  3 16:14 /etc/rc.d/S99squeezelite -> ../init.d/squeezelite
1 Like

Verify that the startup symlink is preserved after reboot:

reboot
ls -l /etc/rc.d/*squeezelite*

is this correct?

BusyBox v1.28.4 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.2, r7676-cddd7b4c77
 -----------------------------------------------------
root@OpenWrt:~# ls -l /etc/rc.d/*squeezelite*
lrwxrwxrwx    1 root     root            21 May  3 16:14 /etc/rc.d/K1squeezelite -> ../init.d/squeezelite
lrwxrwxrwx    1 root     root            21 May  3 16:14 /etc/rc.d/S99squeezelite -> ../init.d/squeezelite
root@OpenWrt:~#
1 Like

You can use /etc/rc.local as a last resort workaround.
Something like that:

( sleep 20; /etc/init.d/squeezelite start ) &
1 Like

It seems that now it works, I'm going to do several tests, have if it stays. Again, thank you very much for your help

1 Like

Hello, it seems that everything is going well again, thank you very much, I enclose some images of the frankenstein and NAS that I use

1 Like

If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)

You can also mark the reply that solved your problem:
grafik

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.