RobbH wrote: > Does anybody else know of reasons why -z is deprecated?
Hey Robb Sorry about the delay, I could not connect to forums.slimdevices for about an hour or so. As I said in my earlier post I have always thought -z was not necessary, and to be avaoided. I have no recollection of where or when this seed was planted :confused: When I first used Squeezelite I found Gerrelt's scripts and have used them always. I always recommend them. But I hardly read the information, because many years ago I made a spoof sheet and operate from that. Your query promted me to read through Gerrelt's blog and I found this > Starting Squeezelite on startup > > It was working well, so now I wanted to have it started on startup. So, > to automate things, I made a daemon start script to start Squeezelite. > > The daemon script uses a seperate script for the settings, called > squeezelite_settings.sh . For automatic startup I use a systemd > service file squeezelite.service. > and sure enough Code: -------------------- pi@raspberrypiLMS:~ $ sudo /etc/init.d/squeezelite status -l * squeezelite.service - Squeezelite LMS player Loaded: loaded (/etc/systemd/system/squeezelite.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2021-02-18 17:23:00 GMT; 29min ago Process: 618 ExecStart=/etc/init.d/squeezelite start (code=exited, status=0/SUCCESS) Main PID: 655 (squeezelite-arm) Tasks: 4 (limit: 3860) CGroup: /system.slice/squeezelite.service `-655 /usr/bin/squeezelite-armv6hf -o hw:CARD=Headphones,DEV=0 -n raspberrypiLMS -m dc a6 32 ce 7e 58 -C 10 -a 0 -P /var/run/squeezelite-armv6hf.pid -z Feb 18 17:23:00 raspberrypiLMS systemd[1]: Starting Squeezelite LMS player... Feb 18 17:23:00 raspberrypiLMS sudo[625]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/squeezelite-armv6hf -t Feb 18 17:23:00 raspberrypiLMS sudo[625]: pam_unix(sudo:session): session opened for user root by (uid=0) Feb 18 17:23:00 raspberrypiLMS sudo[625]: pam_unix(sudo:session): session closed for user root Feb 18 17:23:00 raspberrypiLMS squeezelite[618]: Starting: /usr/bin/squeezelite-armv6hf -o hw:CARD=Headphones,DEV=0 -n raspberrypiLMS -m dc:a6:32:ce:7e:58 -C 10 -a :::0 -P...armv6hf.pid -z Feb 18 17:23:00 raspberrypiLMS squeezelite[618]: with pidfile: /var/run/squeezelite-armv6hf.pid Feb 18 17:23:00 raspberrypiLMS systemd[1]: squeezelite.service: Can't open PID file /run/squeezelite-armv6hf.pid (yet?) after start: No such file or directory Feb 18 17:23:00 raspberrypiLMS systemd[1]: Started Squeezelite LMS player. Hint: Some lines were ellipsized, use -l to show in full. pi@raspberrypiLMS:~ $ -------------------- The bugger is already there :) Now; when I first used these scripts I did not understand any of the nomentclature, but "I'm younger than that now" and understand a little. I just don't join the words up with a bit of thinking. So, relax, wrap up, and keep warm, stay safe and zed away if you want to :p:):cool: ronnie ------------------------------------------------------------------------ Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=113962
_______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix