From 0e6fdb854f83b3343e0d60eb38009149d711fe11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 8 Mar 2023 13:17:47 +0900 Subject: [PATCH] add systemd config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- etc/archive-box.service | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 etc/archive-box.service diff --git a/etc/archive-box.service b/etc/archive-box.service new file mode 100644 index 00000000..c131f539 --- /dev/null +++ b/etc/archive-box.service @@ -0,0 +1,28 @@ +# +# These are just a few examples of settings +# +# Items that probably need to be rewritten depending on the environment: +# WorkingDirectory, ExecStart, User, Group, +# + +[Unit] +Description=Open source self-hosted web archiving +Documentation=https://github.com/ArchiveBox/ArchiveBox/wiki + +[Service] +Type=simple +WorkingDirectory=/home/archive-box/archive-box/ +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=archive-box +User=archive-box +Group=archive-box + + +[Install] +WantedBy=multi-user.target \ No newline at end of file