To add the aMuled service and have it automatically launch after Debian boots, you can create a systemd service unit file. Here’s a step-by-step guide:
- Create a new systemd service file:
Open a terminal and create a new service file foraMuled:
sudo nano /etc/systemd/system/amuled.service- Add the following content to the service file:
[Unit]
Description=aMule Daemon
After=network.target
[Service]
ExecStart=/usr/local/bin/amuled -f -p /home/mzh/.aMule/amuled.pid
User=mzh
Group=mzh
PIDFile=/home/mzh/.aMule/amuled.pid
Restart=on-failure
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target- Replace
mzhwith your actual username if needed. - The
ExecStartcommand specifies the command to run the aMule daemon. - The
UserandGroupensure that the service runs under your user account. -
PIDFilehelps systemd manage the process.
- Reload systemd to apply changes:
sudo systemctl daemon-reload- Enable the service to start on boot:
sudo systemctl enable amuled- Start the aMuled service immediately:
sudo systemctl start amuled- Check the status to ensure it is running:
sudo systemctl status amuledIf everything is set up correctly, aMuled should now start automatically whenever your Debian system boots.
