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

22 lines
505 B
Plaintext
Raw Normal View History

#!/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
}