Skip to content

Commit a94d23c

Browse files
author
Tobias Wallin
committed
thank you/systemd readme
1 parent 6ab6a8d commit a94d23c

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ A simple factorio init script for linux
33

44
# Debugging
55
If you find yourself wondering why stuff is not working the way you expect:
6-
- Enable debugging in the config
7-
and/or
6+
- Check the logs, I suggest you `tail -f /opt/factorio/factorio-current.log` in a separate session
7+
- Enable debugging in the config and/or:
88
- Try running the same commands as the factorio user
99

1010
```bash
@@ -23,6 +23,24 @@ A simple factorio init script for linux
2323
```
2424
- Rename config.example to config and modify the values within according to your setup.
2525

26+
## Systemd
27+
- Copy the example service, adjust & reload
28+
29+
```bash
30+
$ cp /opt/factorio-init/factorio.service.example /etc/systemd/system/factorio.service
31+
# Edit the service file to suit your environment then reload systemd
32+
$ systemctl daemon-reload
33+
```
34+
35+
- Verify that the server starts
36+
37+
```bash
38+
$ systemctl start factorio
39+
$ systemctl status -l factorio
40+
# Remember to enable the service at startup if you want that:
41+
$ systemctl enable factorio
42+
```
43+
2644
## SysvInit
2745
- Symlink the init script:
2846

@@ -40,5 +58,14 @@ A simple factorio init script for linux
4058
$ service factorio help
4159
```
4260

43-
# License
44-
This code is realeased with the MIT license, see the LICENSE file.
61+
# Thank You
62+
- To all who find this script useful in one way or the other
63+
- A big thank you to [Wube](https://www.factorio.com/team) for making [Factorio](https://www.factorio.com/)
64+
- A special thanks to NoPantsMcDance, Oxyd, HanziQ, TheFactorioCube and all other frequent users of the [#factorio](irc://irc.esper.net/#factorio) channel @ esper.net
65+
- Thank you to Salzig for pointing me in the right direction when it comes to input redirection
66+
- At last, but not least; Thank you to all [contributors](https://github.com/Bisa/factorio-init/graphs/contributors) and users posting [issues](https://github.com/Bisa/factorio-init/issues) in my [github](https://github.com/Bisa/factorio-init/) project or on the [factorio forums](https://forums.factorio.com/viewtopic.php?f=133&t=13874)
67+
68+
You are all a great source of motivation, thank you.
69+
70+
# License
71+
This code is realeased with the MIT license, see the LICENSE file.

0 commit comments

Comments
 (0)