This file is indexed.

/etc/init.d/xttpd is in xtide 2.13.2-1build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#! /bin/sh
### BEGIN INIT INFO
# Provides:          xttpd
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:	@(#)skeleton  1.6  11-Nov-1996  miquels@cistron.nl
#
# This file by Peter S Galbraith <psg@debian.org> for the xtide package.

#---------------------------------------
# Configuration:  
#  
#  Uncommenting the PORT line below enables this daemon at bootup.
#  To start the server after uncommenting the line, there is no need 
#  to reboot, simply invoke:
#                            # /etc/init.d/xttpd start
#
#  PORT: Port number used by xttpd
#   - If you use 80, xttpd will be your standard web server and will be 
#     visible as http://localhost  (Make sure no other web server is installed)
#   - Alternatively, use a higher unprivileged port number (e.g. 8080) to have
#     xttpd running in addition to a standard web server.  xttpd would then 
#     be visble as http://localhost:8080/
#  XTTPD_FEEDBACK:
#   - Set the environment variable XTTPD_FEEDBACK to change the feedback 
#     address email address.
#PORT=8080
#XTTPD_FEEDBACK=user@your.site
#-Edit-lines-above-and-uncomment--------

PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/xttpd
NAME=xttpd
DESC="Harmonic tide clock and tide predictor server"

test -f $DAEMON || exit 0
test -f /etc/xtide.conf || exit 0
if ! test "$PORT"; then
#  echo "$NAME: unconfigured"
   exit 0
fi

set -e

case "$1" in
  start)
    echo -n "Starting $DESC: $NAME"
#   start-stop-daemon --start --oknodo --quiet --exec XTTPD_FEEDBACK=$XTTPD_FEEDBACK $DAEMON $PORT > /dev/null 2> /dev/null &
    echo "."
    if test "$XTTPD_FEEDBACK"; then
        XTTPD_FEEDBACK=$XTTPD_FEEDBACK $DAEMON $PORT >> /var/log/xttpd 2>&1 &
    else
        $DAEMON $PORT >> /var/log/xttpd 2>&1 &
    fi
    ;;
  stop)
    echo -n "Stopping $DESC: $NAME"
    start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
    echo "."
    ;;
  force-reload|restart)
    echo -n "Restarting $DESC: $NAME"
    start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
#   start-stop-daemon --start --oknodo --quiet --exec $DAEMON $PORT > /dev/null 2> /dev/null &
    echo "."
    if test "$XTTPD_FEEDBACK"; then
        XTTPD_FEEDBACK=$XTTPD_FEEDBACK $DAEMON $PORT >> /var/log/xttpd 2>&1 &
    else
        $DAEMON $PORT >> /var/log/xttpd 2>&1 &
    fi
    ;;
  *)
    echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}"
    exit 0
    ;;
esac

exit 0