packages: fixed issues found by internal CI
parent
df07725607
commit
7647e97f3d
|
@ -75,9 +75,19 @@ start() {
|
||||||
chown -f $user /etc/amplify-agent/agent.conf
|
chown -f $user /etc/amplify-agent/agent.conf
|
||||||
chown -f $user /var/log/amplify-agent/agent.log
|
chown -f $user /var/log/amplify-agent/agent.log
|
||||||
daemon --user=$user $binary start --config=$conffile --pid=$pidfile
|
daemon --user=$user $binary start --config=$conffile --pid=$pidfile
|
||||||
fi;
|
fi
|
||||||
|
RETVAL="$?"
|
||||||
echo
|
echo
|
||||||
return $RETVAL
|
if [ "$RETVAL" -ne 0 ]; then
|
||||||
|
return "$RETVAL"
|
||||||
|
fi
|
||||||
|
for i in 1 2 3 4 5; do
|
||||||
|
if [ -e "$pidfile" ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
@ -123,6 +133,13 @@ debug() {
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
if status -p $pidfile amplify-agent >/dev/null 2>&1; then
|
||||||
|
echo "amplify-agent is already running" >&2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
if [ -e "$pidfile" ]; then
|
||||||
|
rm -f "$pidfile"
|
||||||
|
fi
|
||||||
start
|
start
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
|
@ -135,7 +152,7 @@ case "$1" in
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status -p $pidfile amplify-agent
|
status -p $pidfile amplify-agent
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
configtest)
|
configtest)
|
||||||
|
|
|
@ -66,7 +66,16 @@ do_start()
|
||||||
chown -f $USER /var/log/amplify-agent/agent.log
|
chown -f $USER /var/log/amplify-agent/agent.log
|
||||||
start-stop-daemon --start --chuid $USER --exec $DAEMON start -- $DAEMON_ARGS
|
start-stop-daemon --start --chuid $USER --exec $DAEMON start -- $DAEMON_ARGS
|
||||||
RETVAL="$?"
|
RETVAL="$?"
|
||||||
return "$RETVAL"
|
if [ "$RETVAL" -ne 0 ]; then
|
||||||
|
return "$RETVAL"
|
||||||
|
fi
|
||||||
|
for i in 1 2 3 4 5; do
|
||||||
|
if [ -e "$PIDFILE" ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
do_stop()
|
do_stop()
|
||||||
|
@ -94,6 +103,13 @@ do_debug() {
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
if status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" >/dev/null 2>&1; then
|
||||||
|
echo " * $NAME is already running" >&2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
if [ -e "$PIDFILE" ]; then
|
||||||
|
rm -f "$PIDFILE"
|
||||||
|
fi
|
||||||
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
|
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
|
||||||
do_start
|
do_start
|
||||||
case "$?" in
|
case "$?" in
|
||||||
|
|
|
@ -22,6 +22,7 @@ Architecture: any
|
||||||
Depends: ${misc:Depends},
|
Depends: ${misc:Depends},
|
||||||
${python3:Depends},
|
${python3:Depends},
|
||||||
python3-daemon,
|
python3-daemon,
|
||||||
|
python3-pyasyncore,
|
||||||
python3-setproctitle,
|
python3-setproctitle,
|
||||||
python3-greenlet,
|
python3-greenlet,
|
||||||
python3-gevent,
|
python3-gevent,
|
||||||
|
|
|
@ -19,6 +19,7 @@ COMPAT_LEVELS = {
|
||||||
'bullseye': 13,
|
'bullseye': 13,
|
||||||
'jammy': 13,
|
'jammy': 13,
|
||||||
'bookworm': 13,
|
'bookworm': 13,
|
||||||
|
'noble': 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue