aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: systemd service file for amule  (Read 3013 times)

titi75011

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 18
systemd service file for amule
« 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

Code: [Select]
[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
Code: [Select]
sudo systemctl enable amuled.service
Logged

titi75011

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 18
Logged

titi75011

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 18
Re: systemd service file for amule
« Reply #2 on: December 10, 2019, 12:54:10 AM »

On debian edit
Code: [Select]
/etc/default/amule-daemon by doing this for example
Code: [Select]
sudo nano /etc/default/amule-daemon and put
Code: [Select]
AMULED_USER="user1" (if your current user is user1)

Then just restart the daemon:
Code: [Select]
sudo systemctl restart amule-daemon.service
Logged