mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
Merge pull request #1115 from fa0311/dev
This commit is contained in:
commit
d72b1495d0
1 changed files with 29 additions and 0 deletions
29
etc/archivebox.service
Normal file
29
etc/archivebox.service
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# This is an example systemd service config definition for ArchiveBox.
|
||||||
|
#
|
||||||
|
# Link it into place on your system to use systemd to auto-start the ArchiveBox server on boot:
|
||||||
|
# https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file
|
||||||
|
#
|
||||||
|
# Review and change these lines as-needed for your specific environment and needs:
|
||||||
|
# WorkingDirectory, ExecStart, User, Group
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Open source self-hosted web archiving
|
||||||
|
Documentation=https://github.com/ArchiveBox/ArchiveBox/wiki
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/home/archivebox/archivebox/
|
||||||
|
ExecStart=/usr/local/bin/archivebox server 0.0.0.0:8000
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
SyslogIdentifier=archivebox
|
||||||
|
User=archivebox
|
||||||
|
Group=archivebox
|
||||||
|
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue