Package: subversion Version: 1.14.1-3 Followup-For: Bug #232584 X-Debbugs-Cc: ro...@rilynn.me.uk
I've written a new version of the script for Bullseye, based on Yubao Liu's version and the template in init-d-script(5). Attached should be the /etc/init.d/svnserve script and /etc/defaults/svnserve file. I am not an expert on scripting, but it seems to work. It still needs Yubao Liu's logrotate file. -- System Information: Debian Release: bullseye/sid APT prefers testing-security APT policy: (500, 'testing-security'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-5-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages subversion depends on: ii libapr1 1.7.0-6 ii libaprutil1 1.6.1-5 ii libc6 2.31-11 ii libsvn1 1.14.1-3 subversion recommends no packages. Versions of packages subversion suggests: ii db5.3-util 5.3.28+dfsg1-0.8 pn libapache2-mod-svn <none> ii patch 2.7.6-7 ii subversion-tools 1.14.1-3 -- no debconf information
#!/usr/bin/env /lib/init/init-d-script ### BEGIN INIT INFO # Provides: svnserve # Required-Start: $syslog $remote_fs $local_fs $network # Required-Stop: $syslog $remote_fs $local_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: SVN server daemon service # Description: Debian init script to start the daemon # serving Subversion repositories. ### END INIT INFO DAEMON=/usr/bin/svnserve LOG_FILE=/var/log/svnserve.log START_ARGS="-c svn:svn" do_start_prepare() { DAEMON_ARGS="-d -T -r $REPOS_DIR --config-file=$CONFIG_FILE --log-file=$LOG_FILE $SVNSERVE_OPTIONS" if [ ! -f "$LOG_FILE" ]; then touch $LOG_FILE chown svn:adm $LOG_FILE chmod 640 $LOG_FILE fi }
REPOS_DIR=/srv/svn/repositories CONFIG_FILE=/srv/svn/svnserve.conf SVNSERVE_OPTIONS=""