diff options
Diffstat (limited to 'net-libs/meta-srht/files')
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-api.confd | 2 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-api.initd | 15 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-api.service | 12 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-daily.service | 8 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-daily.timer | 9 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-webhooks.initd | 15 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht-webhooks.service | 12 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht.confd | 2 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht.cron | 4 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht.initd | 15 | ||||
-rw-r--r-- | net-libs/meta-srht/files/meta.sr.ht.service | 12 |
11 files changed, 106 insertions, 0 deletions
diff --git a/net-libs/meta-srht/files/meta.sr.ht-api.confd b/net-libs/meta-srht/files/meta.sr.ht-api.confd new file mode 100644 index 0000000..9f22d1f --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht-api.confd @@ -0,0 +1,2 @@ +ADDRESS=0.0.0.0 +PORT=5100
\ No newline at end of file diff --git a/net-libs/meta-srht/files/meta.sr.ht-api.initd b/net-libs/meta-srht/files/meta.sr.ht-api.initd new file mode 100644 index 0000000..6280e78 --- /dev/null +++ b/net-libs/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 ${ADDRESS}:${PORT}" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/net-libs/meta-srht/files/meta.sr.ht-api.service b/net-libs/meta-srht/files/meta.sr.ht-api.service new file mode 100644 index 0000000..1341c65 --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht-api.service @@ -0,0 +1,12 @@ +[Unit] +Description=meta.sr.ht API service +After=network.target + +[Service] +Type=simple +User=srht +Restart=always +ExecStart=/usr/bin/metasrht-api -b :5100 + +[Install] +WantedBy=multi-user.target diff --git a/net-libs/meta-srht/files/meta.sr.ht-daily.service b/net-libs/meta-srht/files/meta.sr.ht-daily.service new file mode 100644 index 0000000..a2d9516 --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht-daily.service @@ -0,0 +1,8 @@ +[Unit] +Description=meta.sr.ht job +After=network.target + +[Service] +Type=oneshot +User=srht +ExecStart=/usr/bin/metasrht-daily diff --git a/net-libs/meta-srht/files/meta.sr.ht-daily.timer b/net-libs/meta-srht/files/meta.sr.ht-daily.timer new file mode 100644 index 0000000..2462204 --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht-daily.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Daily meta.sr.ht job + +[Timer] +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/net-libs/meta-srht/files/meta.sr.ht-webhooks.initd b/net-libs/meta-srht/files/meta.sr.ht-webhooks.initd new file mode 100644 index 0000000..a1a42e5 --- /dev/null +++ b/net-libs/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 webhooks 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/net-libs/meta-srht/files/meta.sr.ht-webhooks.service b/net-libs/meta-srht/files/meta.sr.ht-webhooks.service new file mode 100644 index 0000000..24c3b82 --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht-webhooks.service @@ -0,0 +1,12 @@ +[Unit] +Description=meta.sr.ht webhooks service +After=network.target + +[Service] +Type=simple +User=srht +Restart=always +ExecStart=/usr/bin/celery -A metasrht.webhooks worker --loglevel=INFO + +[Install] +WantedBy=multi-user.target diff --git a/net-libs/meta-srht/files/meta.sr.ht.confd b/net-libs/meta-srht/files/meta.sr.ht.confd new file mode 100644 index 0000000..8113c8e --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht.confd @@ -0,0 +1,2 @@ +BINDADDRESS=0.0.0.0 +PORT=5000
\ No newline at end of file diff --git a/net-libs/meta-srht/files/meta.sr.ht.cron b/net-libs/meta-srht/files/meta.sr.ht.cron new file mode 100644 index 0000000..f271a9a --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht.cron @@ -0,0 +1,4 @@ +#!/bin/sh + +su - srht -s /bin/sh -c /usr/bin/metasrht-daily +exit $? diff --git a/net-libs/meta-srht/files/meta.sr.ht.initd b/net-libs/meta-srht/files/meta.sr.ht.initd new file mode 100644 index 0000000..0728798 --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht.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/gunicorn" +command_args="metasrht.app:app -b ${ADDRESS}:${PORT}" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/net-libs/meta-srht/files/meta.sr.ht.service b/net-libs/meta-srht/files/meta.sr.ht.service new file mode 100644 index 0000000..c18e540 --- /dev/null +++ b/net-libs/meta-srht/files/meta.sr.ht.service @@ -0,0 +1,12 @@ +[Unit] +Description=meta.sr.ht website service +After=network.target + +[Service] +Type=simple +User=srht +Restart=always +ExecStart=/usr/bin/gunicorn metasrht.app:app -b 0.0.0.0:5000 + +[Install] +WantedBy=multi-user.target |