Your message dated Thu, 27 Feb 2025 00:30:07 +0000
with message-id <[email protected]>
and subject line Bug#1034833: fixed in orphan-sysvinit-scripts 0.18
has caused the Debian Bug report #1034833,
regarding sysv init script missing in tomcat10 package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1034833: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034833
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tomcat10
Version: 10.1.6-1

Dear maintainers, the tomcat10 package does not ship a sysvinit 
script for use with traditional init. Please consider adding such
a script to the package since it will make things simpler for
users of sysvinit. I have attached a possible implementation of
such a script to this mail. (Derived from tomcat9 package with
some cleanup) I can offer to support/maintain this script
in future if desired.

Best regards,
Andreas Messer
-- 
gnuPG keyid: 8C2BAF51
fingerprint: 28EE 8438 E688 D992 3661 C753 90B3 BAAA 8C2B AF51
#!/bin/sh
### BEGIN INIT INFO
# Provides:          tomcat10
# Required-Start:    $local_fs $remote_fs $network
# Required-Stop:     $local_fs $remote_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Tomcat 10
# Description:       The Tomcat 10 servlet engine runs Java Web Archives.
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC='Tomcat 10 servlet engine'
NAME=tomcat10
readonly DESC NAME

# exit cleanly if disabled or not installed
test -x /usr/libexec/tomcat10/tomcat-update-policy.sh || exit 0
test -x /usr/libexec/tomcat10/tomcat-start.sh || exit 0
test -x /usr/libexec/tomcat10/tomcat-locate-java.sh || exit 0

. /lib/init/vars.sh

test -t 0 && VERBOSE=yes

# set defaults for options
CATALINA_HOME=/usr/share/tomcat10
CATALINA_BASE=/var/lib/tomcat10
CATALINA_TMPDIR=/tmp/tomcat10-tmp
export CATALINA_HOME CATALINA_BASE CATALINA_TMPDIR

JAVA_OPTS=-Djava.awt.headless=true
JSP_COMPILER= # only used if nonempty
SECURITY_MANAGER=false
UMASK=022
export JAVA_HOME JAVA_OPTS JSP_COMPILER SECURITY_MANAGER UMASK

[ -r /etc/default/tomcat10 ] && . /etc/default/tomcat10

. /lib/lsb/init-functions

# somewhat LSB-compliant exit with failure
if test x"$1" = x"status"; then
        exit_failure_msg() {
                log_failure_msg "$@"
                exit 4
        }
else
        exit_failure_msg() {
                log_failure_msg "$@"
                exit 1
        }
fi


# figure out the JRE executable catalina.sh will use
# (we need it for start-stop-daemon --exec for reliability)

[ x"${JAVA_HOME}" = x ] && \
  JAVA_HOME=$(su tomcat -s /bin/sh -c ". 
/usr/libexec/tomcat10/tomcat-locate-java.sh; echo \${JAVA_HOME}")

[ x"${JAVA_HOME}" != x ] || exit_failure_msg "could not determine JRE"

JAVA="${JAVA_HOME}/bin/java"

[ -x "${JAVA}" ] ||  exit_failure_msg "could not find java executable ${JAVA}"


# prepare for actions
case $1 in
(start|stop|restart|force-reload)
        # handled below
        ;;
(try-restart|status)
        start-stop-daemon --status --quiet \
            --pidfile /var/run/tomcat10.pid \
            --exec "$JAVA" --user tomcat
        rv=$?
        # clean up stale pidfile if necessary
        (test x"$rv" = x"1" && rm -f /var/run/tomcat10.pid || :)
        # process status result
        case $1 in
        (try-restart)
                test x"$rv" = x"0" || {
                        # service is not running, or status is unknown
                        log_success_msg "$NAME is not running"
                        exit 0
                }
                # service running, restart it
                ;;
        (status)
                case $rv in
                (0)
                        log_success_msg "$NAME is running"
                        ;;
                (4)
                        log_failure_msg "could not access PID file for $NAME"
                        ;;
                (*)
                        log_failure_msg "$NAME is not running"
                        ;;
                esac
                exit $rv
                ;;
        esac
        ;;
(reload|*)
        # not supported
        echo >&2 "Usage: $0 
{start|stop|restart|try-restart|force-reload|status}"
        exit 3
        ;;
esac

# handle stopping/starting
rv=0

case $1 in
(stop|restart|try-restart|force-reload)
        test x"$VERBOSE" = x"no" || log_daemon_msg "Stopping $DESC" "$NAME"
        start-stop-daemon --stop --quiet \
            --retry=10 --oknodo --remove-pidfile \
            --pidfile /var/run/tomcat10.pid \
            --exec "$JAVA" --user tomcat
        rv=$?
        test x"$VERBOSE" = x"no" || log_end_msg $rv
        ;;
esac

test x"$rv" = x"0" || exit $rv

case $1 in
(start|restart|try-restart|force-reload)
        # ensure the temporary directory exist and change to it
        rm -rf "$CATALINA_TMPDIR"
        mkdir "$CATALINA_TMPDIR" || \
          exit_failure_msg 'could not create JVM temporary directory'
        chown -h tomcat "$CATALINA_TMPDIR"
        cd "$CATALINA_TMPDIR"

        # create log directory if not exists
        [ -d /var/log/tomcat10 ] || mkdir -p /var/log/tomcat10

        /usr/libexec/tomcat10/tomcat-update-policy.sh || \
            exit_failure_msg 'could not regenerating catalina.policy file'
        rm -f /var/run/tomcat10.pid
        test x"$VERBOSE" = x"no" || log_daemon_msg "Starting $DESC" "$NAME"
        start-stop-daemon --start --quiet \
            --chuid tomcat --umask "$UMASK" \
            --startas /usr/libexec/tomcat10/tomcat-start.sh \
            --background --make-pidfile \
            --pidfile /var/run/tomcat10.pid \
            --output /var/log/tomcat10/catalina.out \
            --exec "$JAVA" --user tomcat
        rv=$?
        test x"$VERBOSE" = x"no" || log_end_msg $rv
        ;;
esac

exit $rv

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: orphan-sysvinit-scripts
Source-Version: 0.18
Done: Matthew Vernon <[email protected]>

We believe that the bug you reported is fixed in the latest version of
orphan-sysvinit-scripts, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthew Vernon <[email protected]> (supplier of updated 
orphan-sysvinit-scripts package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 26 Feb 2025 20:26:50 +0000
Source: orphan-sysvinit-scripts
Architecture: source
Version: 0.18
Distribution: unstable
Urgency: medium
Maintainer: Debian sysvinit maintainers 
<[email protected]>
Changed-By: Matthew Vernon <[email protected]>
Closes: 1034833 1042080 1055645 1059712 1065133
Changes:
 orphan-sysvinit-scripts (0.18) unstable; urgency=medium
 .
   * Update dnscrypt-proxy script (Closes: #1059712)
   * Add tomcat10 init script (Closes: #1034833)
   * Add cfengine3 init script (Closes: #1042080)
   * Add pdns-recursor init script (Closes: #1065133)
   * Add mdadm init scripts (Closes: #1055645)
Checksums-Sha1:
 b64a07f57e1668a0ff016d0c44900fb95fb508e1 1869 orphan-sysvinit-scripts_0.18.dsc
 fefcf2cfabb12bd45cce0536c2930c7f34bb224a 20576 
orphan-sysvinit-scripts_0.18.tar.xz
Checksums-Sha256:
 8533dc1f778e5a9fce6023132cc54824f5993bd376d3d179106da0b586466354 1869 
orphan-sysvinit-scripts_0.18.dsc
 0b9ea008aa94ee96da7341981c8bbc930cecb8895aad08cdf4b7f7f5af445cac 20576 
orphan-sysvinit-scripts_0.18.tar.xz
Files:
 2bf6a3efba91a780c828f10eca811687 1869 admin optional 
orphan-sysvinit-scripts_0.18.dsc
 37e04f16fcb420212f123df423d34b46 20576 admin optional 
orphan-sysvinit-scripts_0.18.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAme/lG0THG1hdHRoZXdA
ZGViaWFuLm9yZwAKCRAS9NIcj2pjyK19EACeFBbrR9ZWGeanqQJYtNXHlOOXLvmn
KS7L96bGRCfrzjt46f/n97102H61qY7v6SjXRXLh6X+99xjbgwquTrLIBtaWg8ZQ
4hS+SzVi+cewTOSvuKDEpOGUfUpKgZ+qBc7ToRSrvUeeE0Buwjtiv0AWTEl/Z4oT
CcgK5BUYm4ArY5VEWV3jDNGhTeV3KL7gZ/BYjwBDkxk+bKZtzYx+n8HO2F40jM3J
51zgFbrwSokDszmqKPeOrK6MUGl9ufqE1gYLZWxDK8BvroDQLt/3VKIPH7gonIOP
0KNwqaaqwj1bSocCPyHVAVcG6zN8LVzczFRCoCBJWyFb1PXMhL6o5u7A+Dpd9Jr2
vgT70U6dbBQVW+JF3fAjX37neFanBYs860BswhaWqq33i+1wHn+usfciwvTByeXn
aFyA66ozFrmtTQonTgD1VEkfYWqK9blBADGdqebbw9lpIqKSY35g246GRB0GrqE7
vvRzHIHSVxFynrwJ+V3cGf+EeXtL/XElOrBURKo7BB6A3Np0K6i/Zxyh40cxuGIj
3HR8VNNpuJ+NGI9FNcIRYPrVvE3x6hQvIqp0CzxTnkqv+eBpTsAwTkgLDqTMAXb7
AEt/5Vz4NxUk2BDN1YgovqMB3uebKHIwh5XKQVhBkZZ3SYVZZFiC6/5J223jHneS
z38TXkF/dIxxeA==
=rPKj
-----END PGP SIGNATURE-----

Attachment: pgpVdCXc56lnT.pgp
Description: PGP signature


--- End Message ---

Reply via email to