owncast-systemd-service.md 916 B

This can be any text that makes sense to you.

[Unit]
Description=Owncast Service

This is where the "functional" parts of the service live.

[Service]
Type=simple
WorkingDirectory=[path_to_owncast_root_directory]
ExecStart=[path_to_owncast_executable]
Restart=on-failure
RestartSec=5

WorkingDirectory should be where you want the owncast folder to live.

Example:


Similarly the `ExecStart` is the actual owncast binary.<br />

**Example:**<br />
```ExecStart=/var/www/owncast/owncast```

[Install] WantedBy=multi-user.target ``` This just means, use runlevel 3 non-graphical.

INSTALLATION Just create the file in your systemd configuraiton directory (typically /etc/systemd/system/), and update the systemd daemon with: $sudo systemd daemon-reload

USAGE Currently the following options work

  • Start
  • Stop
  • Status