| View previous topic :: View next topic |
| Author |
Message |
Pueppchen General User

Joined: 15 Sep 2003 Posts: 14
|
Posted: Wed Oct 01, 2003 12:51 am Post subject: OO as service? |
|
|
Hi, is it possible to start an oo-server instance without being logged in? I want to have an server to print oo-documents by sending only the link to the dokument. The server should be abe to open the document and produce a PDF-file then.
Everyone experience with starting oo as process (service)?
Ingo |
|
| Back to top |
|
 |
meadows_p Newbie

Joined: 28 Jul 2003 Posts: 3
|
|
| Back to top |
|
 |
Pueppchen General User

Joined: 15 Sep 2003 Posts: 14
|
Posted: Wed Oct 01, 2003 1:27 am Post subject: |
|
|
thanks for the quick help, but:
maybe i didn't make it clear: this documentation is just for make oo listening. but doesn't say anything about starting oo as daemon. i try to start oo in listening mode with 'startproc ...' but it's not working. if you do like in the documentation, you have to login first and you can start oo in listening mode then. i want to start oo as daemon while linux is booting. and i don't want to login because oo should run on a server.
ingo |
|
| Back to top |
|
 |
meadows_p Newbie

Joined: 28 Jul 2003 Posts: 3
|
Posted: Wed Oct 01, 2003 1:40 am Post subject: Right, didn't understand that |
|
|
Sorry, I didn't see that you meant that and I don't know how you would do that. I'm currently OOo on a dedicated Win2000 server with a samba shared drive to the main linux web server. The web server copies the templates to the shared drive, communicates with OOo via UNO and get's it to save PDF's back to this shared drive.
Due to the nature of windows, we have to be logged in as a user so I wouldn't know how to set it running as a daemon. |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Wed Oct 01, 2003 5:51 am Post subject: |
|
|
Here is a similar question I answered earlier.
http://www.oooforum.org/forum/viewtopic.php?t=2707
Do you understand what I mean about opening the document with the Hidden flag?
| Code: |
oDoc = StarDesktop.loadComponentFromUrl( ....., "_blank", 0,_
Array( MakePropertyValue( "Hidden", True ) ) )
|
[for the definition of the MakePropertyValue function, see either my sig below, or other posts I've made here in Macros and API. Or you can dimension an array with one element of a com.sun.star.beans.PropertyValue, initialize its Name and Value, and pass in that array instead of an anonymous array using Array()]
On Linux, is there any reason you cannot copy one of your system's service initialization scripts, and make it run soffice with the -invisible option? The "stop" option to the script would need to be able to shut it down nicely. So that you can say...
rcOOoservice start | stop | restart | reload | status
When you start the service, you might need an X window server. I think there is a server that runs without a physical display, simply creating a bitmap in memory, but otherwise, a true X server. A similar server would be the VNC server. It is a true X server. Draws to a bitmap in memory. But, you can remote connect to it if you need to see what that bitmap currently looks like.
If you DON'T use the -invisible option, but pre-set the DISPLAY environment variable, I think you could do something like this....
vncserver # start vnc as display :99 (I'm too lazy to read the man page)
export DISPLAY=:99
soffice -accept .....blah..blah....
Perhaps the biggest unanswered question is how to nicely make OOo terminate? _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
|