Results 1 to 1 of 1

Thread: Making a Python Script into a Service

  1. #1
    Join Date
    Sep 2018

    Making a Python Script into a Service

    It is CouchPotato program and the CouchPotato is a python script. However, when I start up the service it reloads the whole program and starts me at the wizard within the browser. So I stopped the service and then manually loaded the python file and everything was okay (I have information on CouchPotato so I hoping I don't have to migrate it). I am wondering what I am doing wrong? Why is the python script working correctly when I start is manually but not when the computer starts it. So this is what I have done so far.

    1. sudo nano /lib/systemd/system/CouchPotato.service
    Inside of the file I have -
    Description=Dummy Service

    ExecStart=/usr/bin/python2.7 /home/jt2k/CouchPotato/CouchPotatoServer/



    2. sudo systemctl daemon-reload
    3. sudo systemctl enable dummy.service

    4. sudo systemctl start dummy.service
    5. sudo systemctl status dummy.service
    The status says active

    (I have made the folder /CouchPotato/ chmod 777 and /.couchpotato/ as well)
    Last edited by jt2k; March 25th, 2020 at 12:05 AM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts