💾 Archived View for 7-ph.com › public › posts › 2022-04-10-agate-setup.gmi captured on 2022-06-11 at 20:35:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

Agate Setup - "systemd"

Date: April 10, 2022
Tags: gemini, agate, systemd

Setting up systemd unit files is fiddly. It took me ten or so tries. This is on a Gnu/Linux Mint 20 server (Mintbox 2, I think).

[Unit]
Description=agate
After=network.target

[Service]
User=xxxxx
Type=simple
ExecStart=/home/xxxxx/bin/agate --content /home/xxxxx/xxxxxgmi/public_gemini/ \
      --addr [::]:1965 \
      --certs /home/xxxxx/.certificates \
      --addr 0.0.0.0:1965 \
      --hostname mint.xxxxx.com \
      --lang en-US

[Install]
WantedBy=default.target

I did most of the work as "root" (via `sudo`). I exported "RUST_LOG=off" and "RUST_BACKTRACE=1" prior to using `systemctl` to bring the service up. It is runninng fine.

I had been running the service manually. But when I had the reboot the server for software updates, a <snark>favorite feature of Gnu/Linux</snark> it was a pain to keep it running. So I bit the bullet. The RUST settings were done because of error messages in testing and are likely unnecessary.

Good luck! Hope this helps someone, some day.

Agate Setup - "systemd" was published on 2022-04-10