void-linux / void-linux/void-docs
Expand on emulating cron-like tasks with snooze
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- CSS
- Estrellas
- 217
- Forks
- 212
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 1
Descripción
As an alternative to the standard cron implementations, you can use snooze(1) together with the snooze-hourly, snooze-daily, snooze-weekly and snooze-monthly services, which are provided by the snooze package for this purpose. Each of these services execute scripts in the respective /etc/cron.* directories. (ref)
After spending a while scrutinizing the manpage for snooze, I can see that it has a lot of useful functions (timefiles are awesome, rewrote those several times for my cron jobs). But I'm not quite sure how to emulate cron-like behavior with the listed tools, particularly at a granularity less-than hourly. Someone else was recently asking for clarification on snooze services in the IRC as well, which tells me I'm not the only one. (I can kinda get closer by reverse-engineering the snooze-${time}ly services...)
Given that many people who might be reading the cron page in the handbook may be quite new to void & runit services, I think there might be value in adding some croncrete concrete examples/explanation of runit-native scheduling. This might also help people who are trying to figure out the analog for systemd timers.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza por la página de cron enlazada en el issue y lee la página del manual de snooze(1) junto con los servicios snooze-hourly, snooze-daily, snooze-weekly y snooze-monthly. Documenta ejemplos concretos y nativos de runit para programar con una granularidad inferior a una hora y explica cómo se comparan con los temporizadores de systemd. La tarea estará terminada cuando una persona nueva pueda seguir los ejemplos sin tener que hacer ingeniería inversa de los servicios.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 57/100