1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lancache autostart on boot via service

Discussion in 'Linux & Open Source' started by Mad Professor, 22 Nov 2021.

  1. Mad Professor


    Joined: 10 Nov 2008

    Posts: 190

    Location: Isle Of Wight, UK

    Good day all.

    I have quite a large family, and as such quite often we hit a problem with one of the children starting a game download / update, bringing the rest of the internet to a crawl and endless complaining form the rest of the children.

    So to try and combat this I have build a small server running Ubuntu Server LTS and Lancache.

    Lancache is all up and running and seems to be doing the job, but currently I have to SSH into it and start Lancache whenever we have a power outage, etc.

    I tried to make a new "service" to start lancache, but it seems to start it and then quit again.

    Description=Docker Compose LANCache Service
    ExecStart=/usr/bin/docker-compose up -d
    ExecStop=/usr/bin/docker-compose down

    Running "sudo service docker-compose-lancache status" returns the following;

    Does anyone have any thoughts on what I have done wrong here?

    Thanks in advance.
    Last edited: 22 Nov 2021