How to configure the Duplicacy Web edition as a systemd service
Introduction
The Duplicacy Web Edition is a single binary file that can be run directly from the Linux command line.
This makes it simple to run and does not require installation.
However, if you prefer to run this as a systemd service that automatically starts up in the background, you can create a custom systemd service.
Configuration
Copy the Duplicacy binary file to the
/usr/bin/directory.
For example:
sudo cp duplicacy_web_linux_x64_1.8.0 /usr/binChange the permissions to
755.
sudo chmod 755 /usr/bin/duplicacy_web_linux_x64_1.8.0Create a
systemdservice unit in the/usr/lib/systemd/userdirectory.
For example:
sudo vi /usr/lib/systemd/user/duplicacy-web.serviceThe contents should look like the following:
[Unit]
Description=Duplicacy Web service
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/duplicacy_web_linux_x64_1.8.0
[Install]
WantedBy=default.targetReload the
systemctldaemon.
sudo systemctl daemon-reloadEnable the service.
systemctl --user enable duplicacy-web.serviceStart the service.
systemctl --user start duplicacy-web.serviceRun the
loginctlcommand with thelingeroption to make sure the service runs in the background even when logged off from the system.
sudo loginctl enable-linger <username>Change <username> to your actual username.
The Duplicacy web GUI will now automatically start and run in the background as a systemd service.
Last updated