CLOCKWORKD(1)

✨ CLOCKWORKD ✨

okay bestie, welcome to the clockworkd page β€” it lives in the clockwork manual and honestly? it's giving little daemon that could πŸ’…

🌸 NAME 🌸

clockworkd β€” the daemon that runs your clockwork scripts, no cap. Like, it just executes them, in the background, forever, like a lil guy doing cardio πŸƒβ™€οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

clockworkd [-c FILE] [OPTIONS] {start|stop|restart|run}

so you pass it a file if you want, some options if you want, and then you tell it one of four words: start, stop, restart, or run. that's the whole vibe check. pick one. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

clockworkd executes clockwork script as a daemon. that's it, that's the job, and it slays at it ✨

but listen β€” you will need the daemons gem to use clockworkd. it is not automatically installed. please install it by yourself, bestie, nobody's gonna do it for you 😭 it's a whole DIY moment.


πŸŽ€ OPTIONS πŸŽ€

okay this is the part where you actually read, because there's a lot and every single one matters 🫢

  • --pid-dir=DIR β€” alternate directory in which to store the process ids. the default is GEM_LOCATION/tmp. so like, if you wanna put your pids somewhere else, this is your girl πŸ’œ
  • -i, --identifier=STR β€” an identifier for the process. default is the clock file name. it's basically a little name tag for your process 🏷️
  • -l, --log β€” redirect both STDOUT and STDERR to a logfile named clockworkd[.identifier].output in the pid-file directory. yes both. everything. into the log. πŸ“
  • --log-dir=DIR β€” a specific directory to put the log files into. default location is the pid directory. so if you don't say anything, logs go hang out with the pids πŸ“
  • -m, --monitor β€” start monitor process. it's watching πŸ‘€ iconic behaviour honestly
  • -c, --clock=FILE β€” clock .rb file. default is GEM_LOCATION/clock.rb. that's your actual script, your main character 🌟
  • -d, --dir=DIR β€” directory to change to once the process starts. like, the process gets a new home 🏠
  • -h, --help β€” show help message. the classic. the people's option πŸ™ˆ

πŸ’€ BUGS πŸ’€

found a bug? bestie, please create an issue at https://github.com/tomykaira/clockwork/issues. we wanna know. spill. 🫢

and if it's a bug fix or a feature request, please send a pull-request. but do not forget to add tests to show how your feature works, or what bug is fixed. no test, no vibe. and here's the thing: all existing tests and new tests must pass. TravisCI is watching πŸ‘οΈπŸ‘„πŸ‘οΈ it sees everything. it's literally always watching.


πŸ‘‘ AUTHORS πŸ‘‘

  • Created by Adam Wiggins. 🫑
  • Inspired by rufus-scheduler and resque-scheduler. πŸ’‘
  • Design assistance from Peter van Hardenberg and Matthew Soldo. 🎨
  • Patches contributed by Mark McGranaghan and LukΓ‘Ε‘ KonarovskΓ½. 🩹

collab of the century fr fr.


🌈 SEE ALSO 🌈


and that's the whole page, babes β€” this one shipped as a Ruby Gem back in August 2014, and it's still out here executing clockwork scripts as a daemon. periodt. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from