RC-SERVICE(8)
π NAME π
rc-service β find that OpenRC service, then run it with whatever args you handed over π«Ά
okay so real talk, the manual page name is rc-service(8) and it lives in the System Manager's Manual section (that's section 8, for the sysadmin girlies). she's a baddie, she's a workhorse, let's get into it π
β¨ SYNOPSIS β¨
rc-service [-c, --ifcrashed] service cmd [...]
rc-service -d, --debug service cmd [...]
rc-service -D, --nodeps service cmd [...]
rc-service [-i, --ifexists] service cmd [...]
rc-service [-I, --ifinactive] service cmd [...]
rc-service [-N, --ifnotstarted] service cmd [...]
rc-service [-s, --ifstarted] service cmd [...]
rc-service [-S, --ifstopped] service cmd [...]
rc-service -e, --exists service
rc-service -Z, --dry-run service cmd [...]
rc-service -l, --list
rc-service -r, --resolve service
like. look at her go. so many moods, all iconic π
πΈ DESCRIPTION πΈ
bestie, here's the whole vibe: service scripts could be in different places on different systems. rude, right? so rc-service locates the specified service and runs it with the given arguments. that's the whole job. she finds it, she runs it, she doesn't make it weird π
now for the conditional girlies, because sometimes you want a 0 and not a whole meltdown:
- if you pass
-i,--ifexists, thenrc-servicereturns0even if the service does not exist. no service? no problem, still slay π - if you pass
-I,--ifinactiveor-N,--ifnotstarted, thenrc-servicereturns0if the service exists but is in the wrong state. she's there, she's just not doing the thing, and we're being chill about it π
and if you hit her with the -l, --list argument? then rc-service will list all available services. window shopping, but for daemons β¨
okay now the little lookup ones:
-e,--existsβ return0if it can find service, otherwise-1. literally just a yes/no vibe check π-r,--resolveβ does the same and also prints the full path of the service to stdout. same energy but she tells you where the service is living. giving tour guide π¦
and the behaviour-tweaking ones:
-d,--debugβ sets-xwhen running the service script(s). all the tea gets spilled to your terminal π-D,--nodepsβ ignores dependencies when running the service. she's going in solo, no entourage, main character energy π-Z,--dry-runβ displays commands rather than executing them. dress rehearsal only, nothing actually happens, no cap π
heads up bestie:-c,--ifcrashed,-s,--ifstartedand-S,--ifstoppedshow up in the synopsis, but this page doesn't give them their own description line. so I'm not gonna invent lore for them. what's written is what's written, fr fr π
π₯ SEE ALSO π₯
go read those next, iykyk πβ¨
π AUTHORS π
Roy Marples <roy@marples.name> β the legend, the blueprint, the moment π
and that's the whole page, periodt π
this was rc-service from OpenRC, dated May 1, 2009 π go forth and manage your services, bestie, you're gonna eat π
π«Ά
π¦ where this page comes from
- alpine 3.22: openrc-doc 0.62.6-r0 Β· BSD-2-Clause
- alpine 3.23: openrc-doc 0.63-r1 Β· BSD-2-Clause
- alpine 3.24: openrc-doc 0.63.2-r0 Β· BSD-2-Clause
- debian bookworm: openrc 0.45.2-2+deb12u1 Β· BSD-2-clauses
- debian trixie: openrc 0.56-1 Β· BSD-2-clauses
- Copyright (c) 2007-2015 The OpenRC Authors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms