LR_CHECK_SUPERSERVICE(1)
π NAME π
ok so lr_check_superservice β this little icon literally maps a Lire service to its Lire superservice. that's it, that's the whole vibe. welcome to LogReport's Lire Documentation bestie π
β¨ SYNOPSIS β¨
lr_check_superservice service
lr_check_superservice -l
πΈ DESCRIPTION πΈ
okay so here's the tea β β lr_check_superservice takes a Lire service as its argument, and hands you back the superservice that this service belongs to. like, it's giving "who's your parent friend group" energy, iykyk π
and if the service is unknown? no cap, you get a userfriendly errormessage. userfriendly is literally the word here β it's not gonna yell at you, it's gonna tell you nicely π«Ά
when you call it with the -l option, this script prints all supported superservices. the whole list. every single one. iconic behavior honestly π
ngl, you might prefer thelr_log2report(1)--helpoptions to list available superservices β this command creates a more human-friendly format of the list. so like, both work, but one is prettier β¨
π¦ EXAMPLE π¦
call this script in shell scripts as:
LR_SERVICE="$1"
LR_SUPERSERVICE=`lr_check_superservice "$LR_SERVICE" || true`
if test -z "$LR_SUPERSERVICE"
then
echo >&2 "$tag err lr_check_superservice failed"
exit 1
fi
# now go using $LR_SUPERSERVICE
like, copy-paste this into your script and you're genuinely good to go π (the || true is doing so much work here, we stan a resilient pipeline π)
β SEE ALSO β
go read those if you're feeling extra curious, bestie π
π VERSION π
$Id: lr_check_superservice.in,v 1.10 2006/07/23 13:16:32 vanbaal Exp $
π COPYRIGHT π
Copyright (C) 2002-2003 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
ok the ALL CAPS warranty disclaimer is real β no warranty, fr fr, don't come for them if it breaks π
π AUTHOR π
Joost van Baal <joostvb@logreport.org>
and that's the whole page babes π this was Lire 2.1.1, dated 2025-09-28 β go forth and map those superservices, you absolute main character π¦β¨π
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms