[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support @reboot parameter

From: Dale Mellor
Subject: Re: Support @reboot parameter
Date: Wed, 29 Dec 2021 01:25:25 +0000
User-agent: Evolution 3.38.3-1

On Thu, 2021-12-09 at 20:00 +0100, Jonathan Brielmaier wrote:
> Hi fellow mcron devs,
> it would be nice if mcron would support the `@reboot`
> parameter, which
> starts a job once the systems boots.

  The mcron configuration file can contain any guile code, and is
executed when mcron starts up.  So you can just call any of your
scripts at startup and it will have the effect of Debian's cron's
@reboot parameter.

For example, the file

    (display "test 1") (newline)
    (job '(next-minute) (lambda () (display "test 2") (newline)))

will display "test 1" at start-up, and then "test 2" at the head
of every minute thereafter.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]