archivebox.service 874 B

1234567891011121314151617181920212223242526272829
  1. # This is an example systemd service config definition for ArchiveBox.
  2. #
  3. # Link it into place on your system to use systemd to auto-start the ArchiveBox server on boot:
  4. # https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file
  5. #
  6. # Review and change these lines as-needed for your specific environment and needs:
  7. # WorkingDirectory, ExecStart, User, Group
  8. [Unit]
  9. Description=Open source self-hosted web archiving
  10. Documentation=https://github.com/ArchiveBox/ArchiveBox/wiki
  11. [Service]
  12. Type=simple
  13. WorkingDirectory=/home/archivebox/archivebox/
  14. ExecStart=/usr/local/bin/archivebox server 0.0.0.0:8000
  15. ExecReload=/bin/kill -s HUP $MAINPID
  16. ExecStop=/bin/kill -s QUIT $MAINPID
  17. Restart=always
  18. RestartSec=2
  19. StandardOutput=syslog
  20. StandardError=syslog
  21. SyslogIdentifier=archivebox
  22. User=archivebox
  23. Group=archivebox
  24. [Install]
  25. WantedBy=multi-user.target