You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running newserv as a systemd service, I am seemingly unable to pass input to the built-in shell when leveraging a systemd socket.
The socket properly accepts the string, but no corresponding output is in the logs.
To reproduce
Start FIFO socket via systemd
Start newserv via systemd
Send a command to the FIFO socket (echo "help" > /run/newserv.stdin)
Check journalctl for log output (or lack thereof in this case)
Game version(s) (choose one or more of the following):
This is for newserv itself, not the clients
Server log output
Truncated log output showing no help command output.
....
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [Config] Starting IP/PPP stack simulator
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [IPStackSimulator] Listening on Unix socket /tmp/dolphin-tap on fd 24 as T-IPS-/tmp/dolphin-tap
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [IPStackSimulator] Listening on TCP interface 0.0.0.0:5059 on fd 25 as T-IPS-5059
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [IPStackSimulator] Listening on Unix socket /tmp/dolphin-modem-tap on fd 26 as T-PPPST-/tmp/dolphin-modem-tap
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [IPStackSimulator] Listening on TCP interface 0.0.0.0:5058 on fd 27 as T-PPPST-5058
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [IPStackSimulator] Listening on TCP interface 0.0.0.0:5057 on fd 28 as T-PPPSR-5057
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [Config] Note: The Devolution phone numbers for T-PPPSR-5057 are 11458972881857 (local) and 175207663997889 (external)
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [Config] Enabling signal watcher
Dec 14 15:29:47 gameserver newserv[2046]: I 2046 2024-12-14 15:29:47 - [Config] Ready
Additional context
systemd files
/etc/systemd/system/newserv.service
[Unit]
Description="Phantasy Star Online 1&2 Server via Newserv"
After=network.service
[Service]
ExecStart=/newserv/newserv/newserv
User=newserv
Group=newserv
WorkingDirectory=/newserv/newserv
StandardInput=socket
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
Describe the bug
When running
newserv
as asystemd
service, I am seemingly unable to pass input to the built-in shell when leveraging asystemd
socket.The socket properly accepts the string, but no corresponding output is in the logs.
To reproduce
systemd
newserv
viasystemd
echo "help" > /run/newserv.stdin
)journalctl
for log output (or lack thereof in this case)Game version(s) (choose one or more of the following):
This is for
newserv
itself, not the clientsServer log output
Truncated log output showing no
help
command output.Additional context
systemd
files/etc/systemd/system/newserv.service
/etc/systemd/system/newserv.socket
Directory Structure
Expand to view
The text was updated successfully, but these errors were encountered: