# this will start `/usr/bin/copyparty` # and read config from `/etc/copyparty/copyparty.conf` # # the %i refers to whatever you put after the copyparty@ # so with copyparty@foo.service, %i == foo # # unless you add -q to disable logging, you may want to remove the # following line to allow buffering (slightly better performance): # Environment=PYTHONUNBUFFERED=x [Unit] Description=copyparty file server [Service] Type=notify SyslogIdentifier=copyparty WorkingDirectory=/var/lib/copyparty-jail Environment=PYTHONUNBUFFERED=x Environment=PRTY_CONFIG=/etc/copyparty/copyparty.conf ExecReload=/bin/kill -s USR1 $MAINPID # user to run as + where the TLS certificate is (if any) User=%i Environment=XDG_CONFIG_HOME=/home/%i/.config # run copyparty ExecStart=/usr/bin/python3 /usr/bin/copyparty [Install] WantedBy=multi-user.target