Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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
Hide 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):
name
=
"application"
def
start
(
self
):
def
start
(
self
,
init
=
True
):
"""Start Application"""
logger
.
debug
(
"Process Started %s, Port %s. Pid %s"
%
(
self
.
name
,
self
.
getAddress
()[
-
1
],
...
...
@@ -75,7 +75,7 @@ class Application(object):
def
restart
(
self
):
"""Start and Stop the process"""
self
.
stop
()
self
.
start
()
self
.
start
(
init
=
False
)
def
status
(
self
):
"""Check by socket if the openoffice work."""
...
...
cloudooo/handler/ooo/application/openoffice.py
View file @
74b11d36
...
...
@@ -130,11 +130,11 @@ class OpenOffice(Application):
except
NotImplementedError
,
e
:
logger
.
error
(
"lsof isn't installed on this machine: "
+
str
(
e
))
def
start
(
self
):
def
start
(
self
,
init
=
True
):
"""Start Instance."""
self
.
path_user_installation
=
join
(
self
.
path_run_dir
,
\
"cloudooo_instance_%s"
%
self
.
port
)
if
exists
(
self
.
path_user_installation
):
if
init
and
exists
(
self
.
path_user_installation
):
removeDirectory
(
self
.
path_user_installation
)
# Create command with all parameters to start the instance
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
class
IApplication
(
Interface
):
"""Controls and monitors an application"""
def
start
():
def
start
(
init
=
True
):
"""Start the application"""
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