snac-global.service 599 B

123456789101112131415161718192021222324
  1. [Unit]
  2. Description=A simple, minimalistic ActivityPub instance
  3. Documentation=https://codeberg.org/grunfink/snac2/src/branch/master/doc
  4. After=network.target
  5. Wants=network-online.target
  6. [Service]
  7. DynamicUser=yes
  8. User=snac
  9. Group=snac
  10. StateDirectory=snac
  11. ExecStart=/usr/local/bin/snac httpd $STATE_DIRECTORY
  12. Restart=on-failure
  13. [Install]
  14. WantedBy=multi-user.target
  15. # This is a systemd global service example. Edit and run:
  16. #
  17. # cp snac-global.service /etc/systemd/system/snac.service
  18. # sudo snac init /var/lib/snac
  19. # sudo snac adduser /var/lib/snac USER
  20. # systemctl enable snac
  21. # systemctl start snac