Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

PhiServer on Ubuntu as systemd service #14

Open
aiscy opened this issue Jan 11, 2017 · 2 comments
Open

PhiServer on Ubuntu as systemd service #14

aiscy opened this issue Jan 11, 2017 · 2 comments

Comments

@aiscy
Copy link

aiscy commented Jan 11, 2017

Hello! I'm trying to setup your server as systemd service but got some trouble.
When I run it manually it works well

aiscy@ogryzok2:~$ mono /home/aiscy/PhiServer/PhiServer.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Launching server for 0.0.0.0 on port 16180

But if I run as service, I get this message:

Loaded: loaded (/etc/systemd/system/phiserver.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2017-01-11 15:49:35 UTC; 1s ago
Process: 28328 ExecStart=/usr/bin/mono /home/aiscy/PhiServer/PhiServer.exe (code=exited, status=0/SUCCESS)
Main PID: 28328 (code=exited, status=0/SUCCESS)

Jan 11 15:49:34 ogryzok2 systemd[1]: Started Rimworld Phi server.
Jan 11 15:49:35 ogryzok2 mono[28328]: Launching server for 0.0.0.0 on port 16180
Jan 11 15:49:35 ogryzok2 mono[28328]: 1/11/2017 3:49:35 PM|Fatal|WebSocketServer.receiveRequest|System.Threading.ThreadAbortException
Jan 11 15:49:35 ogryzok2 mono[28328]: at (wrapper managed-to-native) System.Net.Sockets.Socket:Accept_internal (intptr,int&,bool)
Jan 11 15:49:35 ogryzok2 mono[28328]: at System.Net.Sockets.Socket.Accept_internal (System.Net.Sockets.SafeSocketHandle safeHandle, System.Int32& error, System.Boolean blocking) [0x0000c] in <5071a6e4a4564e19
Jan 11 15:49:35 ogryzok2 mono[28328]: at System.Net.Sockets.Socket.Accept () [0x00008] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
Jan 11 15:49:35 ogryzok2 mono[28328]: at System.Net.Sockets.TcpListener.AcceptTcpClient () [0x00016] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
Jan 11 15:49:35 ogryzok2 mono[28328]: at WebSocketSharp.Server.WebSocketServer.receiveRequest () [0x00012] in <38d3cef14c5a4fc9a92de0991034bc1a>:0
Jan 11 15:49:35 ogryzok2 mono[28328]: WARNING: The runtime version supported by this application is unavailable.
Jan 11 15:49:35 ogryzok2 mono[28328]: Using default runtime: v4.0.30319

Here's my service script:

[Unit]
Description=Rimworld Phi server
[Service]
ExecStart=/usr/bin/mono /home/aiscy/PhiServer/PhiServer.exe
WorkingDirectory=/home/aiscy/PhiServer
Type=simple
[Install]
WantedBy=multi-user.target

Could you please tell me what am I doing wrong?

@ghost
Copy link

ghost commented Aug 3, 2017

Fixed?

@aiscy
Copy link
Author

aiscy commented Aug 5, 2017

I'm using screen as workaround ;(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant