WineHQ
Wine Forums

Board index » WineHQ » Wine Help » Linux




 Page 1 of 1 [ 6 posts ] 



 
Author Message
 Post Posted: Sun Oct 28, 2018 9:22 pm 
Offline
Level 1
Level 1

Joined: Wed Oct 10, 2018 10:35 pm
Posts: 7
I try to run my service on ubuntu, and I am ok run it on ubuntu-desktop.
I use wine regedit ti maike my service run with wineboot.

I try to use rc.local, but wineboot no work on it. Can someone help me?

and this is my rc.local :

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo "reg test" > /home/user/text.log
wineboot
echo "reg test" > /home/user/text2.log


I already find text 、 text2.log.


Top 
 Post Posted: Sun Oct 28, 2018 10:17 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2636
Location: Cambridge
@game12138

See: WineHQ Forums: persistent wineserver.

Don't ever run Wine as root. rc.local is therefore not appropriate. See: WineHQ FAQ.

Wine typically needs to be started, within an existing X Session, unless your service is a pure Win32 console application.

Please use forum Code tags:
Code:
...
for blocks of terminal output/commands/file dumps...

Bob


Top 
 Post Posted: Mon Oct 29, 2018 8:14 pm 
Offline
Level 1
Level 1

Joined: Wed Oct 10, 2018 10:35 pm
Posts: 7
Bob Wya wrote:
@game12138

See: WineHQ Forums: persistent wineserver.

Don't ever run Wine as root. rc.local is therefore not appropriate. See: WineHQ FAQ.

Wine typically needs to be started, within an existing X Session, unless your service is a pure Win32 console application.

Please use forum Code tags:
Code:
...
for blocks of terminal output/commands/file dumps...

Bob


@Bob Wya
after this, I try to switch to user in rc.local:
Code:
/bin/su - user -c "WINEDEBUG=-all /opt/wine-devel/bin/wineboot"

wine reg work, but my service not start, it a WCF with console, any the others idea?


Top 
 Post Posted: Sat Nov 03, 2018 6:35 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2636
Location: Cambridge
@game12138

See: WineHQ Forums: persistent wineserver.

Code:
/opt/wine-devel/bin/wineboot

will boot your WINEPREFIX, then immediately exit, because there are no foreground Windows applications running.

You need to use:
Code:
/opt/wine-devel/bin/wineservert

to run Windows services in a persistent fashion, under Wine.

Again just read the forum thread I've already linked to...
Rather than wandering off into the weeds...
You are asking for help - right??! :roll:

Bob


Top 
 Post Posted: Sun Nov 04, 2018 10:46 pm 
Offline
Level 1
Level 1

Joined: Wed Oct 10, 2018 10:35 pm
Posts: 7
Bob Wya wrote:
@game12138

See: WineHQ Forums: persistent wineserver.

Code:
/opt/wine-devel/bin/wineboot

will boot your WINEPREFIX, then immediately exit, because there are no foreground Windows applications running.

You need to use:
Code:
/opt/wine-devel/bin/wineservert

to run Windows services in a persistent fashion, under Wine.

Again just read the forum thread I've already linked to...
Rather than wandering off into the weeds...
You are asking for help - right??! :roll:

Bob


yes, I read it befoer, I already run it in rc.local. thank you a lot.


Top 
 Post Posted: Sun Nov 04, 2018 10:51 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2636
Location: Cambridge
game12138 wrote:
...

yes, I read it befoer, I already run it in rc.local. thank you a lot.


Hopefully you're not trying to run wineservert though... :lol:

Bob


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 6 posts ] 




Board index » WineHQ » Wine Help » Linux


Who is online

Users browsing this forum: No registered users and 19 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: