/etc/init.d/swift-object is in swift-object 2.2.0-1+deb8u1.
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 | #! /bin/sh
### BEGIN INIT INFO
# Provides: swift-object
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Swift object server
# Description: Object server for swift.
### END INIT INFO
SERVICE_NAME="object-server"
PRINT_NAME="object server"
. /lib/lsb/init-functions
if ! [ -x /usr/bin/swift-init ] ; then
exit 0
fi
case "$1" in
start)
log_daemon_msg "Starting Swift ${PRINT_NAME}" "swift-init ${SERVICE_NAME}"
/usr/bin/swift-init ${SERVICE_NAME} start
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping Swift ${PRINT_NAME}" "swift-init ${SERVICE_NAME}"
/usr/bin/swift-init ${SERVICE_NAME} stop
log_end_msg $?
;;
restart|force-reload|reload)
$0 stop
sleep 1
$0 start
;;
status)
exec /usr/bin/swift-init ${SERVICE_NAME} status
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
;;
esac
exit 0
|