Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-unit-options: startAt can be a list #18172

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

Profpatsch
Copy link
Member

OnCalendar entrys can be specified multiple times in a systemd timer, to
make more complex scheduling possible.

Tested by manually checking the timer generated by the following:

systemd = {
  services.huhu = {
    description = "meh";
    wantedBy = [ "default.target" ];
    serviceConfig.ExecStart = "/bin/sh -c 'printf HUHU!'";
    startAt = [ "*:*:0/30" "*:0/1:15" ];
  };
};

It prints HUHU to the log at seconds 0, 15 and 30 of each minute.

OnCalendar entrys can be specified multiple times in a systemd timer, to
make more complex scheduling possible.

Tested by manually checking the timer generated by the following:

    systemd = {
      services.huhu = {
        description = "meh";
        wantedBy = [ "default.target" ];
        serviceConfig.ExecStart = "/bin/sh -c 'printf HUHU!'";
        startAt = [ "*:*:0/30" "*:0/1:15" ];
      };
    };

It prints HUHU to the log at seconds 0, 15 and 30 of each minute.
@mention-bot
Copy link

@Profpatsch, thanks for your PR! By analyzing the annotation information on this pull request, we identified @edolstra, @bluescreen303 and @rickynils to be potential reviewers

@domenkozar domenkozar merged commit d163882 into NixOS:master Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants