Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] cronie: support $OPTS and logging in service
Date: Mon, 20 Jan 2020 21:46:00 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18433@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages cronie
https://github.com/void-linux/void-packages/pull/18433

cronie: support $OPTS and logging in service
This PR modifies the cronie package to support $OPTS definitions in the service conf file and adds a logger, both of which are consistent with the behavior of the dcron package.

A patch file from https://github.com/void-linux/void-packages/pull/18433.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cronie-18433.patch --]
[-- Type: text/x-diff, Size: 1414 bytes --]

From c06c2f6d0eae3dc48cf2cb2a19b1dec09e6b4b09 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Mon, 20 Jan 2020 15:41:05 -0500
Subject: [PATCH] cronie: support $OPTS and logging in service

---
 srcpkgs/cronie/files/cronie/log/run | 2 ++
 srcpkgs/cronie/files/cronie/run     | 3 ++-
 srcpkgs/cronie/template             | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)
 create mode 100755 srcpkgs/cronie/files/cronie/log/run

diff --git a/srcpkgs/cronie/files/cronie/log/run b/srcpkgs/cronie/files/cronie/log/run
new file mode 100755
index 00000000000..481c04d6207
--- /dev/null
+++ b/srcpkgs/cronie/files/cronie/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p cron.notice
diff --git a/srcpkgs/cronie/files/cronie/run b/srcpkgs/cronie/files/cronie/run
index c1216bb0f29..d3045c363c6 100755
--- a/srcpkgs/cronie/files/cronie/run
+++ b/srcpkgs/cronie/files/cronie/run
@@ -1,2 +1,3 @@
 #!/bin/sh
-exec cronie-crond -n 2>&1
+[ -r conf ] && . ./conf
+exec cronie-crond -n $OPTS 2>&1
diff --git a/srcpkgs/cronie/template b/srcpkgs/cronie/template
index 50e2d88dfbd..cd00937e7f5 100644
--- a/srcpkgs/cronie/template
+++ b/srcpkgs/cronie/template
@@ -1,7 +1,7 @@
 # Template file for 'cronie'
 pkgname=cronie
 version=1.5.5
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--with-inotify --without-selinux --with-pam
  --enable-anacron --enable-pie --enable-relro"

             reply	other threads:[~2020-01-20 20:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-20 20:46 voidlinux-github [this message]
2020-01-20 21:45 ` voidlinux-github
2020-01-21  1:13 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-21  1:42 ` voidlinux-github
2020-01-30  7:16 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18433@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).