SFTP Drive - Running as a Service on Linux
Requirements: SFTP Drive
Introduction
The Linux edition of SFTP Drive can be configured to run as a background service, allowing drives to start automatically and operate continuously without manual intervention.
Getting Started
Running as service is designed simple, the following are the basic steps to configure:
Open a terminal and create a new service file in /etc/systemd/system/sftpdrive.service to define how the SFTP Drive service should run.
[Unit]
Description=SFTP Drive service
After=network.target
[Service]
ExecStart=/usr/bin/dotnet /home/test/setup/sftpdrive-24.0/sftpdrive.dll start -c /home/test/setup/sftpdrive-24.0/sftpdrive_example.conf
User=test
Restart=always
[Install]
WantedBy=multi-user.target
Reload the Systemd to recognize the new service file.
sudo systemctl daemon-reload
Configure the service to start automatically whenever the system boots.
sudo systemctl enable sftpdrive.service
Restart the service to apply any configuration changes.
sudo systemctl restart sftpdrive.service
Confirm that the service is running using the following example.
sudo systemctl status sftpdrive.service
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@callback.com.