From cefd4a3b79f09183421c72581bd7bfcb819c1d30 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Tue, 3 Jan 2023 20:34:23 -0500 Subject: www-apps/meta-srht: Update daemon scripts --- www-apps/meta-srht/files/meta.sr.ht-api.confd | 1 + www-apps/meta-srht/files/meta.sr.ht-api.initd | 15 +++++++++++++++ www-apps/meta-srht/files/meta.sr.ht-webhooks.initd | 15 +++++++++++++++ www-apps/meta-srht/files/meta.sr.ht.cron | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 www-apps/meta-srht/files/meta.sr.ht-api.confd create mode 100644 www-apps/meta-srht/files/meta.sr.ht-api.initd create mode 100644 www-apps/meta-srht/files/meta.sr.ht-webhooks.initd create mode 100644 www-apps/meta-srht/files/meta.sr.ht.cron (limited to 'www-apps/meta-srht/files') diff --git a/www-apps/meta-srht/files/meta.sr.ht-api.confd b/www-apps/meta-srht/files/meta.sr.ht-api.confd new file mode 100644 index 0000000..335a43e --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-api.confd @@ -0,0 +1 @@ +PORT=5100 \ No newline at end of file diff --git a/www-apps/meta-srht/files/meta.sr.ht-api.initd b/www-apps/meta-srht/files/meta.sr.ht-api.initd new file mode 100644 index 0000000..55955a0 --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-api.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="meta.sr.ht API daemon" +description="" +command="/usr/bin/metasrht-api" +command_args="-b ${PORT}" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/www-apps/meta-srht/files/meta.sr.ht-webhooks.initd b/www-apps/meta-srht/files/meta.sr.ht-webhooks.initd new file mode 100644 index 0000000..9b06269 --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-webhooks.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="meta.sr.ht daemon" +description="" +command="/usr/bin/celery" +command_args="-A metasrht.webhooks worker --loglevel=INFO" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/www-apps/meta-srht/files/meta.sr.ht.cron b/www-apps/meta-srht/files/meta.sr.ht.cron new file mode 100644 index 0000000..f271a9a --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht.cron @@ -0,0 +1,4 @@ +#!/bin/sh + +su - srht -s /bin/sh -c /usr/bin/metasrht-daily +exit $? -- cgit v1.2.3