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 of run, run-file β€” pick one, bestie, not neither.

Example: my-program

  • run-file β€” the file to save as <servicedir>/run. again: one of run, run-file must 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 ./main
  • servicedir β€” 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 πŸ’–)


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