CDIST-TYPE__START_ON_BOOT(7)

πŸ’– cdist-type__start_on_boot πŸ’–

okay bestie, so this is cdist-type__start_on_boot from the cdist manual pages (section 7, for the record ✨), and it's literally the type that handles all your "please start this thing when the machine wakes up" business.


🌸 NAME 🌸

cdist-type__start_on_boot β€” manage stuff to be started at boot πŸ‘‘


✨ DESCRIPTION ✨

This cdist type lets you enable or disable stuff so it gets started at boot of your operating system. That's it, that's the whole vibe. You point it at a thing, you tell it whether that thing should be popping off at boot or not, and it handles the rest. πŸ’…

Warning: this type has not been tested intensively and is not fully supported. so like… it works, but it's giving "experimental bestie", not "certified main character". proceed with awareness, okay? 😭

πŸŽ€ REQUIRED PARAMETERS πŸŽ€

None.</purgle>

None.

Nothing. Zero. Nada. You don't have to give it anything. 🫢


πŸ¦‹ OPTIONAL PARAMETERS πŸ¦‹

  • state β€” either "present" or "absent", and it defaults to "present". so like, if you say nothing, it assumes you want the thing to be started at boot. present = yes babe, start it. absent = no babe, do not. 🌈
  • target_runlevel β€” the runlevel which should be modified, defaults to "default". only used on gentoo systems, so if you're not on gentoo this one is just kinda standing there looking pretty. πŸ™ˆ

πŸ”₯ EXAMPLES πŸ”₯

okay so here's how it actually looks in the wild, no cap:

# Ensure snmpd is started at boot
__start_on_boot snmpd

# Same, but more explicit
__start_on_boot snmpd --state present

# Ensure legacy configuration management will not be started
__start_on_boot puppet --state absent

first one: snmpd starts at boot, minimal effort, iconic. second one: same exact thing but you said the quiet part out loud with --state present. third one: puppet gets told absolutely not and will not be started at boot β€” legacy configuration management, we're moving on. πŸ’€βœ¨


πŸ‘€ SEE ALSO πŸ‘€


πŸ’œ AUTHORS πŸ’œ

Nico Schottelius <nico-cdist--@--schottelius.org> β€” the legend himself 🫢


πŸ“œ COPYING πŸ“œ

Copyright (C) 2012-2019 Nico Schottelius. 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. fr fr, go read the license, it's important. πŸ’–


ungleich GmbH 2021 🌟


and that's the whole page bestie!! this was cdist version 7.0.0, dated Jul 31, 2022, and honestly? she ate. slay, stay booted, mwah πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from