pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/anubis
Module Name: pkgsrc
Committed By: khorben
Date: Tue Oct 13 15:34:04 UTC 2026
Modified Files:
pkgsrc/www/anubis: Makefile
pkgsrc/www/anubis/files: anubis.sh
Log Message:
anubis: improve the RC script
This change makes it clearer that the service is actually trying to
start. While there, it also avoids error messages when the RC script is
executed from a directory outside the reach of the anubis user.
Bumps PKGREVISION.
"commit it!" bsiegert@
Tested on NetBSD/amd64.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/www/anubis/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/anubis/files/anubis.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/anubis/Makefile
diff -u pkgsrc/www/anubis/Makefile:1.30 pkgsrc/www/anubis/Makefile:1.31
--- pkgsrc/www/anubis/Makefile:1.30 Sat Sep 5 19:10:04 2026
+++ pkgsrc/www/anubis/Makefile Tue Oct 13 15:34:03 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2026/09/05 19:10:04 bsiegert Exp $
+# $NetBSD: Makefile,v 1.31 2026/10/13 15:34:03 khorben Exp $
DISTNAME= anubis-src-vendor-npm-1.27.0
PKGNAME= ${DISTNAME:S/anubis-src-vendor-npm-/anubis-/}
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=TecharoHQ/}
GITHUB_RELEASE= v${PKGVERSION_NOREV}
Index: pkgsrc/www/anubis/files/anubis.sh
diff -u pkgsrc/www/anubis/files/anubis.sh:1.2 pkgsrc/www/anubis/files/anubis.sh:1.3
--- pkgsrc/www/anubis/files/anubis.sh:1.2 Sat May 24 14:41:18 2025
+++ pkgsrc/www/anubis/files/anubis.sh Tue Oct 13 15:34:04 2026
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: anubis.sh,v 1.2 2025/05/24 14:41:18 ryoon Exp $
+# $NetBSD: anubis.sh,v 1.3 2026/10/13 15:34:04 khorben Exp $
#
# PROVIDE: anubis
# REQUIRE: DAEMON
@@ -32,6 +32,7 @@ anubis_precmd()
anubis_start()
{
+ echo "Starting ${name}."
@SU@ -m ${anubis_user} -c "${command}" >> @VARBASE@/log/anubis.log 2>&1 &
}
@@ -41,8 +42,13 @@ anubis_poststart() {
anubis_stop()
{
- kill -HUP $(check_pidfile $pidfile $name)
+ echo "Stopping ${name}."
+ rc_pid=$(check_pidfile $pidfile $name)
+ kill -HUP $rc_pid
+ wait_for_pids $rc_pid
}
+cd /
+
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index