Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cloudooo
Commits
74b11d36
Commit
74b11d36
authored
Feb 05, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete working directories only at the startup so that we can restart soffice process much faster.
parent
07e26ff2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
cloudooo/handler/ooo/application/application.py
cloudooo/handler/ooo/application/application.py
+2
-2
cloudooo/handler/ooo/application/openoffice.py
cloudooo/handler/ooo/application/openoffice.py
+2
-2
cloudooo/interfaces/application.py
cloudooo/interfaces/application.py
+1
-1
No files found.
cloudooo/handler/ooo/application/application.py
View file @
74b11d36
...
@@ -41,7 +41,7 @@ class Application(object):
...
@@ -41,7 +41,7 @@ class Application(object):
name
=
"application"
name
=
"application"
def
start
(
self
):
def
start
(
self
,
init
=
True
):
"""Start Application"""
"""Start Application"""
logger
.
debug
(
"Process Started %s, Port %s. Pid %s"
%
(
self
.
name
,
logger
.
debug
(
"Process Started %s, Port %s. Pid %s"
%
(
self
.
name
,
self
.
getAddress
()[
-
1
],
self
.
getAddress
()[
-
1
],
...
@@ -75,7 +75,7 @@ class Application(object):
...
@@ -75,7 +75,7 @@ class Application(object):
def
restart
(
self
):
def
restart
(
self
):
"""Start and Stop the process"""
"""Start and Stop the process"""
self
.
stop
()
self
.
stop
()
self
.
start
()
self
.
start
(
init
=
False
)
def
status
(
self
):
def
status
(
self
):
"""Check by socket if the openoffice work."""
"""Check by socket if the openoffice work."""
...
...
cloudooo/handler/ooo/application/openoffice.py
View file @
74b11d36
...
@@ -130,11 +130,11 @@ class OpenOffice(Application):
...
@@ -130,11 +130,11 @@ class OpenOffice(Application):
except
NotImplementedError
,
e
:
except
NotImplementedError
,
e
:
logger
.
error
(
"lsof isn't installed on this machine: "
+
str
(
e
))
logger
.
error
(
"lsof isn't installed on this machine: "
+
str
(
e
))
def
start
(
self
):
def
start
(
self
,
init
=
True
):
"""Start Instance."""
"""Start Instance."""
self
.
path_user_installation
=
join
(
self
.
path_run_dir
,
\
self
.
path_user_installation
=
join
(
self
.
path_run_dir
,
\
"cloudooo_instance_%s"
%
self
.
port
)
"cloudooo_instance_%s"
%
self
.
port
)
if
exists
(
self
.
path_user_installation
):
if
init
and
exists
(
self
.
path_user_installation
):
removeDirectory
(
self
.
path_user_installation
)
removeDirectory
(
self
.
path_user_installation
)
# Create command with all parameters to start the instance
# Create command with all parameters to start the instance
self
.
command
=
[
join
(
self
.
office_binary_path
,
self
.
_bin_soffice
),
self
.
command
=
[
join
(
self
.
office_binary_path
,
self
.
_bin_soffice
),
...
...
cloudooo/interfaces/application.py
View file @
74b11d36
...
@@ -32,7 +32,7 @@ from zope.interface import Interface
...
@@ -32,7 +32,7 @@ from zope.interface import Interface
class
IApplication
(
Interface
):
class
IApplication
(
Interface
):
"""Controls and monitors an application"""
"""Controls and monitors an application"""
def
start
():
def
start
(
init
=
True
):
"""Start the application"""
"""Start the application"""
def
stop
():
def
stop
():
...
...
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