chill wrote:
> That's good then. But of course, this script is all about starting and
> stopping squeezelite, and I don't think it's going to work on your
> system without a bit more work. That's because the script uses
> /usr/local/etc/init.d/squeezelite, which I think is a pCP-only script.
> Do you know how DietPi starts and stops squeezelite? And is it possible
> to get a status message ('/usr/local/etc/init.d/squeezelite status')
> that reports when squeezelite isn't running with "Squeezelite not
> running."?
You are correct. In DietPi there is a different method of getting the
status message.
Code:
--------------------
dietpi-services status squeezelite
--------------------
which outputs:
Code:
--------------------
DietPi-Services
─────────────────────────────────────────────────────
Mode: status squeezelite
[ OK ] DietPi-Services | squeezelite active (running) since Mon
2021-02-08 21:47:43 GMT; 12h ago
--------------------
or in case the service isn't active:
Code:
--------------------
DietPi-Services
─────────────────────────────────────────────────────
Mode: status squeezelite
[ INFO ] DietPi-Services | squeezelite inactive (dead)
--------------------
To start, stop or restart we should use:
Code:
--------------------
dietpi-services <stop/start/restart> squeezelite
--------------------
I will update the script with these commands.
------------------------------------------------------------------------
4]4's Profile: http://forums.slimdevices.com/member.php?userid=71351
View this thread: http://forums.slimdevices.com/showthread.php?t=113661
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix