Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Whole bunch of trailing whitespace #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions init.stud
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/sh

### BEGIN INIT INFO
# Provides: stud
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop stud (SSL offloader)
### END INIT INFO
### BEGIN INIT INFO
# Provides: stud
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop stud (SSL offloader)
### END INIT INFO

#######################################################
# GLOBALS #
Expand Down Expand Up @@ -145,7 +145,7 @@ ULIMIT_N=""
#
# NOTE: set this only if you really know what your're
# doing
#
#
# ADDITIONAL_STUD_OPT=""

# EOF
Expand Down Expand Up @@ -181,7 +181,7 @@ _real_single_instance_start() {
# generate stud command line options
opts="-f ${FRONTEND_ADDRESS}"
opts="${opts} -b ${BACKEND_ADDRESS}"

if [ "${TLS_ONLY}" = "1" ]; then
opts="${opts} --tls"
else
Expand Down Expand Up @@ -225,7 +225,7 @@ _real_single_instance_start() {
opts="${opts} -M ${CACHE_UPDATE_IFACE}"
fi
fi

fi

# chroot?
Expand Down Expand Up @@ -372,7 +372,7 @@ stud_single_instance_restart() {
Error="Unable to stop undefined stud instance."
return 1
fi

# maybe we need to stop it first...
if stud_single_instance_status "${name}"; then
stud_single_instance_stop "${name}" || return 1
Expand Down Expand Up @@ -555,7 +555,7 @@ stud_instances_restart() {
num_failed=$((num_failed + 1))
fi
done

if [ "${num_failed}" != "0" ]; then
return 1
else
Expand Down Expand Up @@ -834,4 +834,4 @@ case $1 in
;;
esac

# EOF
# EOF