Skip to content
Snippets Groups Projects
Commit 12789023 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: adopt cleanup_nodes.sh to the new way of running r-b build services

parent 33d7eca1
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Copyright © 2015-2017 Holger Levsen <holger@layer-acht.org>
# Copyright © 2015-2024 Holger Levsen <holger@layer-acht.org>
# released under the GPLv2
DEBUG=false
......@@ -20,8 +20,12 @@ elif [ "$(whoami)" != "jenkins" ] ; then
fi
# deny running this if build service is still running
SERVICE="reproducible_build.service"
RESULT=$(systemctl show $SERVICE|grep ^ActiveState=active||true)
if [ -z "${XDG_RUNTIME_DIR:-}" ]; then
XDG_RUNTIME_DIR="/run/user/$UID"
export XDG_RUNTIME_DIR
fi
SERVICE='reproducible_build@*.service'
RESULT=$(systemctl --user -M jenkins@ show $SERVICE |grep ^ActiveState=active||true)
if [ -n "$RESULT" ] ; then
echo "$SERVICE is still running, aborting."
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment