CDIST-TYPE__DAEMONTOOLS_SERVICE(7)
π cdist-type__daemontools_service(7) π
okay bestie, sit down, hydrate, and let me tell you about cdist-type__daemontools_service β yes that's the whole name, section 7, she's long and she's worth it π«Ά
β¨ NAME β¨
cdist-type__daemontools_service β literally just here to create a daemontools-compatible service dir. that's the whole job. and she eats π
πΈ DESCRIPTION πΈ
so what she does is: she creates a directory structure that's compatible with daemontools-like service management. that's the vibe. that's the assignment. no notes. π
β οΈ heads up bestie: svc must be present on the target system. like, actually there. if it's not there, this is not gonna go the way you want it to. iykyk π
also β and this is the cute part β the object ID gets used as the service name. so like, you name it, she names the service after it. main character energy fr fr β¨
π REQUIRED PARAMETERS π
None. zero. nothing. she needs literally nothing from you, she's low maintenance like that π
π¦ OPTIONAL PARAMETERS π¦
runβ the command to run. note that exec-ing and stderr redirection will be added for you (she's thoughtful like that π₯°). you gotta specify one ofrun,run-fileβ pick one, bestie, not neither.
Example: my-program
run-fileβ the file to save as<servicedir>/run. again: one ofrun,run-filemust be specified. yes, this is the same rule twice, no, i'm not gonna stop saying it, it matters π
Example:
#!/bin/sh
exec 2>&1
exec my_program
log-runβ the command to run for log consumption. Default:multilog t ./mainservicedirβ the directory to install into. Default:/service
π BOOLEAN PARAMETERS π
None. nope. nada. not a single one π
β EXAMPLES β
here's the moment you've been waiting for, the girlies love a real example:
require="__daemontools" __daemontools_service prometheus --run "setuidgid prometheus $GOBIN/prometheus $FLAGS"
ate. no crumbs. π₯
π SEE ALSO π
go read her sister, they're a package deal π«Ά
π AUTHORS π
Kamila SouΔkovΓ‘ <kamila--@--ksp.sk>
π COPYING π
Copyright (C) 2017 Kamila SouΔkovΓ‘. 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 3 of the License, or (at your option) any later version.
(legal bestie has entered the chat, be nice to her, she's doing her best π)
π§ COPYRIGHT π§
ungleich GmbH 2021
and that's the whole page, bestie!! π
β¨ this was version 7.0.0, dated Jul 31, 2021 β mwah, historic, iconic, copyright ungleich GmbH 2021, sending you love and a working service dir ππ¦π
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms