LR_CHECK_SUPERSERVICE(1)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’… 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 the lr_log2report(1) --help options 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 (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