Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
sso
Commits
ed0ae76a
Commit
ed0ae76a
authored
Mar 30, 2014
by
ale
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use gunicorn for the login service
parent
d4f71167
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
17 deletions
+51
-17
debian/ai-sso-server.init
debian/ai-sso-server.init
+42
-16
debian/changelog
debian/changelog
+7
-0
debian/control
debian/control
+2
-1
No files found.
debian/ai-sso-server.init
View file @
ed0ae76a
...
...
@@ -6,14 +6,18 @@
# Required-Stop: $local_fs $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop the A/I Single-Sign-On server
# Short-Description: A/I Single-Sign-On Server
# Description: Starts and stops the A/I Single-Sign-On server.
### END INIT INFO
DAEMON
=
/usr/sbin/sso_server
NAME
=
sso_server
GUNICORN
=
/usr/bin/gunicorn
GUNICORN_APP
=
"sso_server.wsgi:app"
GUNICORN_OPTS
=
RUNDIR
=
/var/run/sso
LOGDIR
=
/var/log/sso
PIDFILE
=
${
RUNDIR
}
/
sso_server
.pid
PIDFILE
=
${
RUNDIR
}
/
${
NAME
}
.pid
SSO_PORT
=
5002
USER
=
ai-sso
NO_START
=
1
...
...
@@ -25,29 +29,50 @@ check_dirs() {
chown
-R
${
USER
}
${
LOGDIR
}
}
test
-x
${
GUNICORN
}
||
exit
0
test
${
NO_START
}
-eq
1
&&
exit
0
test
-e
/etc/default/ai-sso-server
&&
.
/etc/default/ai-sso-server
test
-x
${
DAEMON
}
||
exit
0
test
${
NO_START
}
-eq
1
&&
exit
0
.
/lib/lsb/init-functions
GUNICORN_OPTS
=
"
--bind 127.0.0.1:
${
SSO_PORT
}
--worker-class gevent
--daemon --pid
${
PIDFILE
}
--name
${
NAME
}
${
GUNICORN_OPTS
}
"
case
"
$1
"
in
start
)
echo
-n
"Starting SSO Server...
"
log_daemon_msg
"Starting SSO server
"
check_dirs
start-stop-daemon
--start
--pidfile
${
PIDFILE
}
--make-pidfile
\
--background
--chuid
${
USER
}
--exec
${
DAEMON
}
--
--port
=
${
SSO_PORT
}
echo
"ok"
start-stop-daemon
--start
--oknodo
\
--pidfile
${
PIDFILE
}
\
--chuid
${
USER
}
\
--exec
${
GUNICORN
}
--
${
GUNICORN_OPTS
}
${
GUNICORN_APP
}
if
[
$?
-eq
0
]
;
then
log_success_msg
else
log_failure_msg
exit
1
fi
;;
stop
)
echo
-n
"Stopping SSO Server... "
start-stop-daemon
--stop
\
--pidfile
${
PIDFILE
}
&&
rm
-f
${
PIDFILE
}
echo
"ok"
log_daemon_msg
"Stopping SSO server"
start-stop-daemon
--stop
--oknodo
--user
${
USER
}
--pidfile
${
PIDFILE
}
if
[
$?
-eq
0
]
;
then
log_success_msg
else
log_failure_msg
fi
rm
-f
${
PIDFILE
}
2>/dev/null
;;
reload
)
echo
-n
"Reloading SSO Server...
"
log_daemon_msg
"Reloading SSO server
"
kill
-HUP
`
cat
${
PIDFILE
}
`
echo
"ok"
log_success_msg
;;
restart
)
$0
stop
...
...
@@ -55,7 +80,8 @@ restart)
$0
start
;;
*
)
echo
-e
"Only [start|stop|reload|restart] operation are allowed
\n
"
echo
"Usage: /etc/init.d/ai-sso-server {start|stop|reload|restart}"
1>&2
exit
1
;;
esac
...
...
debian/changelog
View file @
ed0ae76a
ai-sso (2.0.1) unstable; urgency=low
* OTP support.
* Use 'gunicorn' for serving.
-- Autistici/Inventati <debian@autistici.org> Sun, 30 Mar 2014 11:35:20 +0100
ai-sso (2.0) unstable; urgency=low
* Source upgraded to version 2.0.
...
...
debian/control
View file @
ed0ae76a
...
...
@@ -21,7 +21,8 @@ Description: A/I SSO Python modules.
Package: ai-sso-server
Architecture: all
Depends: ai-sso, ai-sso-python, python-flask, ${python:Depends}
Depends: ai-sso, ai-sso-python, python-flask, gunicorn,
python-setproctitle, lsb-base, adduser, ${python:Depends}
Description: A/I SSO Server.
The login server for the A/I SSO service.
...
...
ale
@ale
mentioned in issue
#4 (closed)
·
Mar 30, 2014
mentioned in issue
#4 (closed)
mentioned in issue #4
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment