Giter Club home page Giter Club logo

factorio-init's Introduction

Factorio Init Script

A simple factorio init script for linux

Install

  • Create a directory where you want to store this script along with configuration. (either copy-paste the files or clone from github):
$ cd '/opt'
$ git clone https://github.com/Bisa/factorio-init.git
  • Rename config.example to config and modify the values within according to your setup.

SysvInit

  • Symlink the init script:
$ ln -s /opt/factorio-init/factorio /etc/init.d/factorio
  • Make the script executable:
$ chmod +x /opt/factorio-init/factorio
  • Try it out!
$ service factorio help

Systemd (includes crash detection & restart)

  • Symlink the systemd unit file and configuration (have a look at the files in case you need to modify them for your environment)
$ ln -s /opt/factorio-init/factorio.service /etc/systemd/system/
$ ln -s /opt/factorio-init/config /etc/default/factorio
  • Symlink the init-script to allow controlling the server from the commandline (optionally, change the path to the script in the unit file)
$ ln -s /opt/factorio-init/factorio /usr/local/bin/
  • Reload to allow systemd to pick up your new unit and start the service
$ systemctl daemon-reload
$ systemctl start factorio.service

Versioning

The code adheres to Semantic Versioning v2.0.0 http://semver.org/spec/v2.0.0.html A release is denoted by the github release system using git tags.

License

This code is realeased with the MIT license, see the LICENSE file.

factorio-init's People

Contributors

bisa avatar r41d avatar zack-shoylev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.