#!/bin/sh set -e pkg=rplayd if [ "$1" = "configure" ]; then if [ -e /etc/init.d/rplayd ]; then rm /etc/init.d/rplayd fi if [ ! -e /etc/rplay/rplay.hosts ]; then echo "RPlayd is currently configured to only allow connections from localhost." echo " man rplay.hosts(5) for details of how to modify this." fi fi # Automatically added by dh_installinit/13.28 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -z "$DPKG_ROOT" ] && [ -x "/etc/init.d/rplay" ]; then update-rc.d rplay defaults 99 10 >/dev/null if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi invoke-rc.d --skip-systemd-native rplay $_dh_action || exit 1 fi fi # End automatically added section # Automatically added by dh_installsystemd/13.28 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi deb-systemd-invoke $_dh_action 'rplay-server.service' >/dev/null || true fi fi # End automatically added section