aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2025-07-20 14:22:50 -0500
committerSlack Coder <slackcoder@server.ky>2025-07-20 14:45:12 -0500
commit739ec900efe908526b937a7a85bb97db533e5535 (patch)
tree79ce0c474fbbc1ddc8e5e408f4e2993f2f062bd3
parent0fed111f691bc06dab097d07e7f6c73ae2e090ab (diff)
downloadslackbuilds-739ec900efe908526b937a7a85bb97db533e5535.tar.xz
gmid: Remove use of sudo
Using sudo this way creates noise in the logs. Reintroduce if there is a better way.
-rw-r--r--gmid/files/rc.gmid.new6
-rw-r--r--gmid/gmid.SlackBuild2
2 files changed, 3 insertions, 5 deletions
diff --git a/gmid/files/rc.gmid.new b/gmid/files/rc.gmid.new
index 4b9e006..44cf3a1 100644
--- a/gmid/files/rc.gmid.new
+++ b/gmid/files/rc.gmid.new
@@ -3,8 +3,6 @@
# Startup/shutdown script for the gmid gemini service.
#
-GMID_USER=${GMID_USER:-root}
-
create_gmid_run_dir() {
if [ ! -d /run/gmid/ ]; then
mkdir -p /run/gmid
@@ -40,7 +38,7 @@ gmid_start() {
fi
echo "Starting gmid gemini service"
- sudo -u "$GMID_USER" -- gmid \
+ gmid \
-c /etc/gmid.conf \
-P /run/gmid/gmid.pid
}
@@ -71,7 +69,7 @@ gmid_stop() {
return
fi
- sudo -u "$GMID_USER" -- kill -TERM "$pid"
+ kill -TERM "$pid"
}
case "$1" in
diff --git a/gmid/gmid.SlackBuild b/gmid/gmid.SlackBuild
index 3c0e6ad..9f1676e 100644
--- a/gmid/gmid.SlackBuild
+++ b/gmid/gmid.SlackBuild
@@ -4,7 +4,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gmid
VERSION=${VERSION:-2.1.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_slackcoder}
PKGTYPE=${PKGTYPE:-txz}