post_systemd.adoc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. == Post installation
  2. You will need to write a basic configuration file before OliveTin will startup.
  3. Create the following basic config file at `/etc/OliveTin/config.yaml` with the
  4. following contents;
  5. .The most simple `config.yaml` file.
  6. [source,yaml]
  7. ----
  8. actions:
  9. - title: "Hello world!"
  10. shell: echo 'Hello World!'
  11. ----
  12. Now that you have a configuration file, and OliveTin is installed, start it;
  13. .Start the service (only needed once)
  14. [source,shell]
  15. ----
  16. user@host: systemctl enable --now OliveTin
  17. ----
  18. If you are running a firewall on your server, like firewalld, you will need to
  19. open port 1337;
  20. [source,shell]
  21. ----
  22. user@host: firewall-cmd --add-port 1337/tcp --permanent
  23. user@host: firewall-cmd --reload
  24. ----
  25. include::partial$install/to_config.adoc[]
  26. == Troubleshooting systemd installations
  27. If you are having problems, you can check if OliveTin is running like this;
  28. [source,shell]
  29. ----
  30. user@host: systemctl status OliveTin
  31. ----
  32. If the service has failed, scroll through the logs;
  33. [source,shell]
  34. ----
  35. user@host: journalctl -eu OliveTin
  36. ----
  37. If you cannot understand the logs, or otherwise need help, see the xref:troubleshooting/wheretofindhelp.adoc[support page].
  38. For more detail on what to capture and how to share logs when asking for help, see xref:troubleshooting/service-logs.adoc[Service logs (troubleshooting)].