Factorio headless server returns 1 for a successful exit

This subforum contains all the issues which we already resolved.
Post Reply
sadris
Inserter
Inserter
Posts: 26
Joined: Thu Oct 02, 2014 5:55 pm
Contact:

Factorio headless server returns 1 for a successful exit

Post by sadris »

Pressing Ctrl-C or sending SIGINT to the factorio headless server returns a 1 instead of 0 for a successful exit.

This makes systemd think that the process failed when this is not the case. My current unit file is below:

Code: Select all

[Unit]
Description=Factorio Headless Server

[Service]
Type=simple
WorkingDirectory=/opt/factorio
ExecStart=/opt/factorio/bin/x64/factorio --start-server main.zip --server-settings data/server-settings.json
KillSignal=SIGINT

sadris
Inserter
Inserter
Posts: 26
Joined: Thu Oct 02, 2014 5:55 pm
Contact:

Re: Factorio headless server returns 1 for a successful exit

Post by sadris »

It looks like this can be worked around by setting SuccessExitStatus=1, but it is a bit atypical for a Linux daemon to return 1 on a successful exit.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13223
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Factorio headless server returns 1 for a successful exit

Post by Rseding91 »

Thanks for the report. It's now fixed for the next 1.1 release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”