commit: 9b5332f71e360fb41d1aadae7997fac2fbecc704
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 17 06:34:56 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 17 06:34:56 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b5332f7
www-misc/quixotic: install OpenRC init script
Signed-off-by: Sam James <sam <AT> gentoo.org>
www-misc/quixotic/files/linkmaze.confd | 10 ++++++++++
www-misc/quixotic/files/linkmaze.initd | 13 +++++++++++++
.../{quixotic-0.12.ebuild => quixotic-0.12-r1.ebuild} | 2 ++
3 files changed, 25 insertions(+)
diff --git a/www-misc/quixotic/files/linkmaze.confd
b/www-misc/quixotic/files/linkmaze.confd
new file mode 100644
index 000000000000..2273924c7f03
--- /dev/null
+++ b/www-misc/quixotic/files/linkmaze.confd
@@ -0,0 +1,10 @@
+# May wish to run it as the same user as your webserver so it has access
+# to training data.
+#LINKMAZE_USER="nginx"
+LINKMAZE_USER="nobody"
+
+# --linkpath controls which paths belong to linkmaze
+# e.g. if webserver proxies /foo/ to linkmaze, then --linkpath should be foo.
+#
+# --train is for training data, point it to a collection of HTML files
+LINKMAZE_ARGS="--linkpath linkmaze --train /path/to/training/data
--listen-addr 127.0.0.1 --listen-port 3005"
diff --git a/www-misc/quixotic/files/linkmaze.initd
b/www-misc/quixotic/files/linkmaze.initd
new file mode 100644
index 000000000000..9e6d10450622
--- /dev/null
+++ b/www-misc/quixotic/files/linkmaze.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name=linkmaze
+pidfile=/run/linkmaze.pid
+command=/usr/bin/linkmaze
+command_background=true
+command_user="${LINKMAZE_USER}"
+retry="TERM/10/KILL/5"
+command_args="${LINKMAZE_ARGS}"
+
+start_stop_daemon_args="--wait 300"
diff --git a/www-misc/quixotic/quixotic-0.12.ebuild
b/www-misc/quixotic/quixotic-0.12-r1.ebuild
similarity index 98%
rename from www-misc/quixotic/quixotic-0.12.ebuild
rename to www-misc/quixotic/quixotic-0.12-r1.ebuild
index 1a67dc7b54af..f5b09c4aa61f 100644
--- a/www-misc/quixotic/quixotic-0.12.ebuild
+++ b/www-misc/quixotic/quixotic-0.12-r1.ebuild
@@ -255,4 +255,6 @@ src_install() {
cargo_src_install
systemd_dounit linkmaze.service
+ newinitd "${FILESDIR}"/linkmaze.initd linkmaze
+ newconfd "${FILESDIR}"/linkmaze.confd linkmaze
}