overlay/games-server/factorio-server/files/factorio.initd
tastytea 625c09ffa8
All checks were successful
continuous-integration/drone/push Build is passing
games-server/factorio-server: Remove executable bit from init file.
2021-01-29 04:30:59 +01:00

22 lines
505 B
Plaintext

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