diff options
Diffstat (limited to 'dev-vcs/git-srht/files')
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-api.confd | 2 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-api.initd | 15 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-api.service | 13 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-periodic.service | 7 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-periodic.timer | 9 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-webhooks.initd | 15 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht-webhooks.service | 13 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht.confd | 2 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht.cron | 4 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht.initd | 15 | ||||
-rw-r--r-- | dev-vcs/git-srht/files/git.sr.ht.service | 13 |
11 files changed, 108 insertions, 0 deletions
diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.confd b/dev-vcs/git-srht/files/git.sr.ht-api.confd new file mode 100644 index 0000000..4160577 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht-api.confd @@ -0,0 +1,2 @@ +ADDRESS=0.0.0.0 +PORT=5101
\ No newline at end of file diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.initd b/dev-vcs/git-srht/files/git.sr.ht-api.initd new file mode 100644 index 0000000..0effd1d --- /dev/null +++ b/dev-vcs/git-srht/files/git.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="git.sr.ht API daemon" +description="" +command="/usr/bin/gitsrht-api" +command_args="-b ${ADDRESS}:${PORT}" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.service b/dev-vcs/git-srht/files/git.sr.ht-api.service new file mode 100644 index 0000000..c41c2fc --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht-api.service @@ -0,0 +1,13 @@ +[Unit] +Description=git.sr.ht API service +Requires=redis.service postgresql.service +After=redis.service postgresql.service network.target + +[Service] +Type=simple +User=gitsrht +Restart=always +ExecStart=/usr/bin/gitsrht-api -b :5101 + +[Install] +WantedBy=multi-user.target diff --git a/dev-vcs/git-srht/files/git.sr.ht-periodic.service b/dev-vcs/git-srht/files/git.sr.ht-periodic.service new file mode 100644 index 0000000..ce4c4b7 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht-periodic.service @@ -0,0 +1,7 @@ +[Unit] +Description=git.sr.ht maintenance tasks + +[Service] +Type=oneshot +User=gitsrht +ExecStart=/usr/bin/gitsrht-periodic diff --git a/dev-vcs/git-srht/files/git.sr.ht-periodic.timer b/dev-vcs/git-srht/files/git.sr.ht-periodic.timer new file mode 100644 index 0000000..09f86f7 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht-periodic.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Periodic git.sr.ht maintenance tasks + +[Timer] +OnBootSec=20m +OnUnitActiveSec=20m + +[Install] +WantedBy=timers.target diff --git a/dev-vcs/git-srht/files/git.sr.ht-webhooks.initd b/dev-vcs/git-srht/files/git.sr.ht-webhooks.initd new file mode 100644 index 0000000..717f888 --- /dev/null +++ b/dev-vcs/git-srht/files/git.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="git.sr.ht webhooks daemon" +description="" +command="/usr/bin/celery" +command_args="-A gitsrht.webhooks worker --loglevel=INFO" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/dev-vcs/git-srht/files/git.sr.ht-webhooks.service b/dev-vcs/git-srht/files/git.sr.ht-webhooks.service new file mode 100644 index 0000000..0a4b4d1 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht-webhooks.service @@ -0,0 +1,13 @@ +[Unit] +Description=git.sr.ht webhooks service +Requires=postgresql.service +After=postgresql.service network.target + +[Service] +Type=simple +User=gitsrht +Restart=always +ExecStart=/usr/bin/celery -A gitsrht.webhooks worker --loglevel=INFO + +[Install] +WantedBy=multi-user.target diff --git a/dev-vcs/git-srht/files/git.sr.ht.confd b/dev-vcs/git-srht/files/git.sr.ht.confd new file mode 100644 index 0000000..4864f19 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht.confd @@ -0,0 +1,2 @@ +BINDADDRESS=0.0.0.0 +PORT=5001
\ No newline at end of file diff --git a/dev-vcs/git-srht/files/git.sr.ht.cron b/dev-vcs/git-srht/files/git.sr.ht.cron new file mode 100644 index 0000000..06c8477 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht.cron @@ -0,0 +1,4 @@ +#!/bin/sh + +su - srht -s /bin/sh -c /usr/bin/gitsrht-periodic +exit $? diff --git a/dev-vcs/git-srht/files/git.sr.ht.initd b/dev-vcs/git-srht/files/git.sr.ht.initd new file mode 100644 index 0000000..9d5aac0 --- /dev/null +++ b/dev-vcs/git-srht/files/git.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="git.sr.ht daemon" +description="" +command="/usr/bin/gunicorn" +command_args="gitsrht.app:app -b ${ADDRESS}:${PORT}" +command_user="srht:srht" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net +} diff --git a/dev-vcs/git-srht/files/git.sr.ht.service b/dev-vcs/git-srht/files/git.sr.ht.service new file mode 100644 index 0000000..a3f0082 --- /dev/null +++ b/dev-vcs/git-srht/files/git.sr.ht.service @@ -0,0 +1,13 @@ +[Unit] +Description=git.sr.ht website service +Requires=redis.service postgresql.service +After=redis.service postgresql.service network.target + +[Service] +Type=simple +User=gitsrht +Restart=always +ExecStart=/usr/bin/gunicorn gitsrht.app:app -b 127.0.0.1:5001 + +[Install] +WantedBy=multi-user.target |