From: "Dirkjan Ochtman" <djc@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/rspamd/, mail-filter/rspamd/files/
Date: Wed, 13 Jan 2016 16:30:31 +0000 (UTC) [thread overview]
Message-ID: <1452702520.327bb1b6b7a73f12e57f0faf23786940dae9ea30.djc@gentoo> (raw)
commit: 327bb1b6b7a73f12e57f0faf23786940dae9ea30
Author: Benny Pedersen <xpunkt <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Mon Jan 11 17:03:58 2016 +0000
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
CommitDate: Wed Jan 13 16:28:40 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=327bb1b6
mail-filter/rspamd: create /var/run at run time
mail-filter/rspamd/files/rspamd.init | 9 ++++++++-
mail-filter/rspamd/rspamd-1.0.11.ebuild | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/mail-filter/rspamd/files/rspamd.init b/mail-filter/rspamd/files/rspamd.init
index 8ba2231..3f5df5b 100644
--- a/mail-filter/rspamd/files/rspamd.init
+++ b/mail-filter/rspamd/files/rspamd.init
@@ -5,7 +5,8 @@
extra_commands="checkconfig"
extra_started_commands="reload"
-PIDFILE=/var/run/rspamd/rspamd.pid
+RUNDIR=/var/run/rspamd
+PIDFILE=$RUNDIR/rspamd.pid
depend() {
need net
@@ -19,6 +20,12 @@ checkconfig() {
start() {
checkconfig || return 1
ebegin "Starting ${SVCNAME}"
+
+ mkdir -m0750 -p $RUNDIR
+ chown rspamd:rspamd $RUNDIR
+ chmod g+s $RUNDIR
+ rm -f $RUNDIR/$SVCNAME.sock
+
start-stop-daemon --start --quiet --pidfile $PIDFILE -u rspamd -g rspamd \
--exec /usr/bin/rspamd
eend $?
diff --git a/mail-filter/rspamd/rspamd-1.0.11.ebuild b/mail-filter/rspamd/rspamd-1.0.11.ebuild
index 73e6738..97460a2 100644
--- a/mail-filter/rspamd/rspamd-1.0.11.ebuild
+++ b/mail-filter/rspamd/rspamd-1.0.11.ebuild
@@ -46,8 +46,8 @@ src_install() {
dodir /var/lib/rspamd
dodir /var/log/rspamd
- dodir /var/run/rspamd
- fowners rspamd:rspamd /var/lib/rspamd /var/log/rspamd /var/run/rspamd
+
+ fowners rspamd:rspamd /var/lib/rspamd /var/log/rspamd
insinto /etc/logrotate.d
newins "${FILESDIR}/rspamd.logrotate" rspamd
next reply other threads:[~2016-01-13 16:30 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 16:30 Dirkjan Ochtman [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-26 19:33 [gentoo-commits] repo/gentoo:master commit in: mail-filter/rspamd/, mail-filter/rspamd/files/ Dirkjan Ochtman
2016-09-10 14:56 Dirkjan Ochtman
2017-06-13 19:52 Dirkjan Ochtman
2018-03-11 14:07 Dirkjan Ochtman
2019-11-04 11:22 Dirkjan Ochtman
2019-12-14 8:41 Joonas Niilola
2020-02-24 5:55 Joonas Niilola
2020-04-04 8:06 Joonas Niilola
2020-10-08 19:41 Sam James
2021-08-22 2:50 Sam James
2021-09-07 20:25 Sam James
2021-09-07 20:25 Sam James
2022-04-12 8:20 Sam James
2022-11-06 6:17 Sam James
2022-11-15 0:56 Sam James
2023-08-07 5:43 Sam James
2023-08-07 17:22 Sam James
2023-12-03 22:01 Petr Vaněk
2024-03-13 17:32 Petr Vaněk
2024-07-13 20:43 Petr Vaněk
2024-10-02 17:44 Petr Vaněk
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=1452702520.327bb1b6b7a73f12e57f0faf23786940dae9ea30.djc@gentoo \
--to=djc@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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