/etc/init.d/albatross is in python-albatross-common 1.36-5.5.
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | #! /bin/sh
### BEGIN INIT INFO
# Provides: al-session-daemon
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Albatross Session Server Daemon
# Description: Start the Albatross Session Server Daemon
### END INIT INFO
# albatross SysV init script for Albatross Session Server Daemon
# and Albatross Standalone Application Server
#
# Copyright 2003-2005 Fabian Fagerholm <fabbe@paniq.net>.
#
# Based on a skeletal version with the following credits:
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=albatross
USER=albatross
SESSION_SERVER=/usr/bin/al-session-daemon
SESSION_NAME=al-session-daemon
SESSION_LOGFILE=/var/log/albatross/albatross-session-daemon.log
SESSION_PIDFILE=/var/run/albatross/al-session-daemon.pid
SESSION_DESC="session server"
# Define LSB functions
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# Source defaults or user configuration.
[ -r /etc/default/albatross ] && . /etc/default/albatross
test -x $SESSION_SERVER || exit 0
if [ $SESSION_ENABLE -eq 0 ]; then
echo "Albatross session server not enabled."
exit 0
fi
set -e
case "$1" in
start)
log_daemon_msg "Starting Albatross" "$SESSION_DESC"
start-stop-daemon --start \
--verbose \
--exec $SESSION_SERVER \
--pidfile $SESSION_PIDFILE \
--user $USER \
--name $SESSION_NAME \
-- \
--port=$SESSION_PORT \
--log=$SESSION_LOGFILE \
--pidfile=$SESSION_PIDFILE \
start
log_end_msg 0
;;
stop)
log_daemon_msg "Stopping Albatross" "$SESSION_DESC"
start-stop-daemon --start \
--verbose \
--exec $SESSION_SERVER \
--pidfile $SESSION_PIDFILE \
--user $USER \
--name $SESSION_NAME \
-- \
--port=$SESSION_PORT \
--log=$SESSION_LOGFILE \
--pidfile=$SESSION_PIDFILE \
stop
log_end_msg 0
;;
restart|force-reload)
$0 stop
$0 start
;;
status)
if [ "`id -ru`" -ne "0" ]
then
log_failure_msg "You must be root to check the status."
exit 1
fi
$SESSION_SERVER status
;;
*)
N=/etc/init.d/$NAME
log_success_msg "Usage: $N {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac
exit 0
|