Re: <on-connect> / <on-disconnect> not working
Petr Pisar <[email protected]>
| Newsgroups | gmane.comp.audio.icecast.general |
|---|---|
| Message-ID | <[email protected]> |
V Thu, Jul 14, 2022 at 01:17:04PM -0700, Jack Elliott napsal(a):
> Thank you, Petr!
>
> Yes, error.log is not very helpful. With loglevel set to 4 (debug) I
> find that the server does claim to run the commands, but there is
> nothing to indicate what the problem might be:
>
> [2022-07-14 13:05:13] DBUG source/source_run_script Starting command /home/my_username/bin/email_onconnect.sh
> [2022-07-14 13:05:13] DBUG source/source_update_settings disconnect script "/home/my_username/bin/email_ondisconnect.sh"
>
I really recommend using the strace tool to verify the script is successfully
executed.
I suspect that a problem is in your script. E.g. it does not work without
a terminal or with /dev/null connected to standard input and output. Icecast
changes file descriptors for the executed commands.
Does you script work when executed from a shell like this?
/home/my_username/bin/email_onconnect.sh </dev/null >/dev/null 2>/dev/null
> This with Icecast 2.4.0 -- I am waiting for some help with a question I
> have posted in this mailing list to confirm I have the right repo
> selected before I attempt upgrading Icecast. It is a running,
> in-operation service for our radio station and I don't want to break
> anything.
>
While Icecast developers have a good relationship with Debian, I would recommend
you to contact vendor of the repository in question. Icecast developers cannot
be responsible for packaging Icecast by someone else.
-- Petr
_______________________________________________
Icecast mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE4/QvzhVoMKgDWObpT9GuwzZa978FAmLQ9sQACgkQT9GuwzZa 9792WA/8DWYrEaK/KjYPAKeD+VuC9j7uMP3+Lep343OX0gVIigvJQjs+pJrTeOh/ 1CzCE3JThqqpfyvuqIKgFlPWJeVAd+yTAoLbCD/0SHGOOFlBUJgvsGql0GGW2nyX 7OPZgpzYlxa787ngYuMJ79Vw3c1KPOSQNxdhGqYfTVqFW2v6fef5AzqpR9sEkxCS Z2R84CjmT8EpZElSsqmn/qq+raTkcMwy/CmnZgtw2Hi+6jPhro/yFPjKM/MWtpvW JZgfcnJaWczBDJjhaQDmx/9L0ENjvQWq227naJb1/7oKiFkQmQBOeb2VgqSntsey fPCrNXv7iNnikPVliEfs5M/D+WCrqypL7RCTUThZp6FDXONT4XhIOFDWRnGNW3AS iOZTg1Adoe1oGcmHdUz25xG3g4NU9ingh4a3EA8ctdxW3UyzeR2djA3jHt9vrMY6 Ex2Th0iL1xcOKVFNdF8y+WPlLW5aLNbRxXrD1sVVnhwIS30LQ02z66BUGhNbEmrS 3fUy/WuQjtY5J4ZQthl8XSSZvO5YdjOqf55p+JH+bAPfrnECPD+rP6gjjZs7ouGL NH1ItYd+WPlbL2SgtCV6eoc/Z50R1yKI/UtNsqBn/Y6kuKLU8p00v3+vl19mbr4Q S1ziIxi4jSq4pqeF8TQEaSpvH1vXRQPiX23Vf12R8vFq1wgkDpE= =vb4D -----END PGP SIGNATURE-----