This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/games-server/factorio-server/files/factorio.initd
tastytea c6d7ec0832
Some checks failed
the build failed
games-server/factorio-server: Added 0.16.51
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2018-09-03 17:04:14 +02:00

22 lines
505 B
Plaintext
Executable File

#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
name="Factorio"
pidfile="/run/factorio.pid"
start_stop_daemon_args="--chdir ${FACTORIO_PATH}"
command="screen"
command_args="-DmUS factorio ./bin/x64/factorio ${FACTORIO_OPTS}"
command_background="true"
if [ -n "${FACTORIO_USER}" ]; then
command_user="${FACTORIO_USER}"
fi
if [ -n "${FACTORIO_GROUP}" ]; then
command_group="${FACTORIO_GROUP}"
fi
depend() {
use net
}