aMule Forum
English => aMule Help => Topic started by: titi75011 on September 19, 2014, 04:40:45 PM
-
i'm responding to this thread http://amule.forumer.com/topic/2340288/systemd-service-file-for-amule
Assuming my usual linux user for amule is "titi"
here is my /etc/systemd/system/amuled.service
[Unit]
Description=Amule daemon
After=network.target
[Service]
ExecStart=/bin/sh -c "sudo -u titi /usr/bin/amuled"
ExecStop=/bin/sh -c "sudo -u titi /usr/bin/amulecmd -c shutdown"
[Install]
WantedBy=multi-user.target
Add the systemD service
sudo systemctl enable amuled.service
-
a better way to do it: https://unix.stackexchange.com/questions/260176/create-amule-daemon-systemd-service-file#answers-header
-
On debian edit
/etc/default/amule-daemon
by doing this for example sudo nano /etc/default/amule-daemon
and put AMULED_USER="user1"
(if your current user is user1)
Then just restart the daemon: sudo systemctl restart amule-daemon.service