8000
Skip to content
 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Note: Awecron requires root privileges and written by random guy on the internet. Understand the risks before using it.

Awesome Cron

Introduction

Awecron is a small and simple custom cron that has something similar between anacron and crontab. The main use case for it is for desktop users however nothing limits using it on a server.

Goal

The aim of this project is to create extremely minimal software that user is supposed to understand and debug on the technical level.

The advantages of using it:

  • extremely minimal and easy to read
  • would still run if misses cronjob run time (if comparing with crontab)
  • no complicated time logic (if comparing with anacron and using on desktop)

Installation

Dependencies

  • sudo / opendoas
  • bash

How to use?

  • clone the repo
  • delete all hidden directories
  • change the configurable environment variables in main.sh
  • configure the cronjob inside of template directory as you wish
  • make sure permissions are set securely to prevent privilege escalation
  • run main.sh as root like a daemon

Files

  • bin is a binary or a shell script that supposed to run
  • timer is an essential file that is automatically changed after last run to when the next time the bin will run
  • config contains configuration variables for the cronjob
    • name optional name for logs
    • user what user runs the bin
    • intr interval in seconds

How it works?

When awecron runs it checks and runs through every directory in the repo. It checks if the current time is more than in timer file of the selected cronjob, if yes then it will run the bin and set the timer again.

About

Cron as a shell script

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0