Peter Sanchez a écrit :
> # HG changeset patch> # User Peter Sanchez <peter@netlandish.com>> # Date 1645051197 21600> # Wed Feb 16 16:39:57 2022 -0600> # Node ID b48a2faef25007557c3846811a6d4952e697208c> # Parent a834e88829f173d439f0cfca106a67d14e0acc99> Add GraphQL API
Thanks, applied as e77b8f7d6dc50537c2e79e2bd81a3f3b3ca7a7f6 with
d/changelog updated.
(I only checked that the package builds fine, but I no longer have a
setup to test the actual result.)
(Having a second look.)
> diff --git a/debian/srht-hg.srht-hg-api.service b/debian/srht-hg.srht-hg-api.service> new file mode 100644> --- /dev/null> +++ b/debian/srht-hg.srht-hg-api.service> @@ -0,0 +1,13 @@> +[Unit]> +Description=hg.sr.ht API service> +Requires=redis-server.service postgresql.service> +After=redis-server.service postgresql.service network.target> +> +[Service]> +Type=simple> +User=hgsrht
This user does not exist. But we're having an 'hg' user (see
debian/srht-hg.postinst), should we use the same one here?
> +Restart=always> +ExecStart=/usr/bin/hgsrht-api -b :5110> +> +[Install]> +WantedBy=multi-user.target
On 02/17, Denis Laxalde wrote:
>(Having a second look.)>>This user does not exist. But we're having an 'hg' user (see >debian/srht-hg.postinst), should we use the same one here?
You're right. The user is 'hg'. Sorry about that, I should have verified
before just assuming all the users followed the same pattern.