From e6c55d7ff904b3408e51daa4368c09a3e8c5d3fe Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 27 Jun 2024 17:35:23 +0200 Subject: [PATCH] systemd service: fix install notes, closes #88 the linked issue mentions that creating the `th` folder inside `.hist` failed when RestrictSUIDSGID=true was enabled; this was on raspbian11 inside an ext4 chmod 777 owned by another user, so I have no idea why that option would make any difference... but might as well mention it --- contrib/systemd/copyparty.service | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/systemd/copyparty.service b/contrib/systemd/copyparty.service index e39cfc6c..e7fb4e85 100644 --- a/contrib/systemd/copyparty.service +++ b/contrib/systemd/copyparty.service @@ -4,7 +4,7 @@ # # installation: # wget https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py -O /usr/local/bin/copyparty-sfx.py -# useradd -r -s /sbin/nologin -d /var/lib/copyparty copyparty +# useradd -r -s /sbin/nologin -m -d /var/lib/copyparty copyparty # firewall-cmd --permanent --add-port=3923/tcp # --zone=libvirt # firewall-cmd --reload # cp -pv copyparty.service /etc/systemd/system/ @@ -12,11 +12,18 @@ # restorecon -vr /etc/systemd/system/copyparty.service # on fedora/rhel # systemctl daemon-reload && systemctl enable --now copyparty # +# every time you edit this file, you must "systemctl daemon-reload" +# for the changes to take effect and then "systemctl restart copyparty" +# # if it fails to start, first check this: systemctl status copyparty # then try starting it while viewing logs: # journalctl -fan 100 # tail -Fn 100 /var/log/copyparty/$(date +%Y-%m%d.log) # +# if you run into any issues, for example thumbnails not working, +# try removing the "some quick hardening" section and then please +# let me know if that actually helped so we can look into it +# # you may want to: # - change "User=copyparty" and "/var/lib/copyparty/" to another user # - edit /etc/copyparty.conf to configure copyparty