Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
6e5bf987
Commit
6e5bf987
authored
Feb 25, 2016
by
Mathieu Rodic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG] using python3.4 for nlpserver
(couldn't get it to work with 3.5)
parent
7e8d0634
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
nlpserver
gargantext/util/taggers/lib/nlpserver/nlpserver
+3
-1
No files found.
gargantext/util/taggers/lib/nlpserver/nlpserver
View file @
6e5bf987
...
...
@@ -2,6 +2,7 @@
# In case this bash file is placed in another directory (e.g., /etc/init.d),
# the following line should be changed to an absolute path
PYTHON_VERSION
=
3.4
DAEMON_DIR
=
$(
cd
"
$(
dirname
"
$BASH_SOURCE
[0]"
)
"
&&
pwd
)
DAEMON_SCRIPT
=
$DAEMON_DIR
/server.py
DAEMON_NAME
=
nlpserver
...
...
@@ -17,7 +18,7 @@ do_start () {
log_daemon_msg
"Starting system '
$DAEMON_NAME
' daemon..."
/sbin/start-stop-daemon
--start
--quiet
\
--make-pidfile
--pidfile
$DAEMON_PID
--background
\
--startas
/bin/bash
--
-c
"python
3
$DAEMON_SCRIPT
$DAEMON_ARGS
> /tmp/
$DAEMON_NAME
.log 2>&1"
--startas
/bin/bash
--
-c
"python
$PYTHON_VERSION
$DAEMON_SCRIPT
$DAEMON_ARGS
> /tmp/
$DAEMON_NAME
.log 2>&1"
# --exec $DAEMON_SCRIPT \
# --user $DAEMON_USER --chuid $DAEMON_USER
log_end_msg
$?
...
...
@@ -25,6 +26,7 @@ do_start () {
do_stop
()
{
log_daemon_msg
"Stopping system '
$DAEMON_NAME
' daemon..."
/sbin/start-stop-daemon
--stop
--pidfile
$DAEMON_PID
--retry
10
rm
$DAEMON_PID
log_end_msg
$?
}
...
...
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