Plan for hosting a Factorio server for my friends and I.
- Auto pause when no one is connected
- Auto shutdown after server has been paused for 10 minutes
| #!/bin/bash | |
| # | |
| # Slack Status - Sets user Slack status | |
| # | |
| # Requires the HTTPie (https://httpie.org/) client | |
| # | |
| # Usage: slack-status STATUS [--help/-h] | |
| # | |
| # Args: | |
| # - STATUS: Status to set, one of |
Plan for hosting a Factorio server for my friends and I.
Plan for Factorio mod which allows the game state to be monitored by Promtheus.
| Error: WebGL warning: Failed to create WebGL context: WebGL creation failed: | |
| * Error during native OpenGL init. | |
| * Exhausted GL driver caps. | |
| * Exhausted GL driver options. |
| ==> Making package: alacritty-git 0.2.3.1003.g3593ec7-1 (Sat 15 Dec 2018 09:21:07 PM EST) | |
| ==> Checking runtime dependencies... | |
| ==> Checking buildtime dependencies... | |
| ==> Retrieving sources... | |
| -> Updating alacritty git repo... | |
| Fetching origin | |
| ==> Validating source files with sha256sums... | |
| alacritty ... Skipped | |
| ==> Extracting sources... | |
| -> Creating working copy of alacritty git repo... |
| #include <errno.h> | |
| #include <sys/select.h> | |
| #include <stdlib.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| int main() { |
| # Output of running script | |
| # ... | |
| TEST BEFORE | |
| ERROR: Failed to move /var/tmp/void_mklive/void-mklive-master/tmp.WH8p117ovx/void-host as rootfs (Invalid argument) | |
| TEST AFTER | |
| # ... |
| package main | |
| import ( | |
| "context" | |
| "time" | |
| ) | |
| func main() { | |
| ctx, ctxCancel := context.WithCancel(context.Background()) | |
| {% set file = '/etc/ssh/sshd_config' %} | |
| {{ file }}: | |
| file.managed: | |
| - source: salt://sshd-config/sshd_config | |
| - mode: 664 | |
| sshd: | |
| service.running: | |
| - reload: True |
| --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5822, si_uid=0, si_status=111, si_utime=0, si_stime=0} --- | |
| open("finish", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory) | |
| open("supervise/pid.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9 | |
| rename("supervise/pid.new", "supervise/pid") = 0 | |
| open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9 | |
| rename("supervise/stat.new", "supervise/stat") = 0 | |
| open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9 | |
| rename("supervise/status.new", "supervise/status") = 0 | |
| stat("control/u", 0x7fff8926f320) = -1 ENOENT (No such file or directory) | |
| open("supervise/pid.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9 |