# Description: Asinine IP over HTTP server
### END INIT INFO
-DAEMON=/usr/sbin/hippotat
+DAEMON=/usr/sbin/hippotatd
MASTER_CONFIG=/etc/hippotat/master.cfg
USER=Debian-hippotat
PIDFILE=/var/run/hippotat/hippotatd.pid
ssd () {
set +e
- start-stop-daemon --start --quiet --user $USER --pidfile=$PIDFILE "$@"
+ start-stop-daemon --quiet --user $USER --pidfile=$PIDFILE "$@"
rc=$?
set -e
}
do_start () {
check_firewall
ensure_dirs
- ssd --chuid $USER --startas \
+ ssd --chuid $USER --start --startas \
$AUTHBIND $DAEMON --daemon --pidfile=$PIDFILE \
--syslog-facility=$LOGFACILITY $HIPPOTATD_ARGS
}
do_stop () {
- ssd --stop --retry 5
+ ssd --stop --oknodo --retry 5
}
case "$1" in
debian/copyright: COPYING AGPLv3+CAFv2
cat $^ >$@.tmp && mv -f $@.tmp $@
+override_dh_python3:
+ dh_python3 -O--buildsystem=pybuild
+ dh_installdirs /usr/sbin
+ mv $i/usr/{bin,sbin}/hippotatd
+
+#install -m755 -o0 -g0 -d $i//usr/sbin
+
override_dh_installinit:
dh_installinit --name=hippotatd
# along with this program, in the file GPLv3. If not,
# see <http://www.gnu.org/licenses/>.
-#@ sys.path.append('@PYBUILD_INSTALL_DIR@')
+#@ import sys; sys.path.append('@PYBUILD_INSTALL_DIR@')
from hippotatlib import *
import twisted.web
# the file AGPLv3+CAFv2. If not, email Ian Jackson
# <ijackson@chiark.greenend.org.uk>.
-#@ sys.path.append(@PYBUILD_INSTALL_DIR@)
+#@ import sys; sys.path.append('@PYBUILD_INSTALL_DIR@')
from hippotatlib import *
import os
from twisted.web.server import NOT_DONE_YET
import twisted.web.static
-import twisted.python.syslog
import hippotatlib.ownsource
from hippotatlib.ownsource import SourceShipmentPreparer