User Tools

Site Tools


ubuntu:startup_service:unit_file

This is an old revision of the document!


Ubuntu - Startup Service - Unit File

Create a Service Startup

/etc/systemd/system/couchpotato.service
[Unit]
Description=CouchPotato application instance
After=network.target
 
[Service]
ExecStart=/usr/bin/authbind --deep /opt/CouchPotatoServer/CouchPotato.py
Type=simple
User=peter
Group=peter
 
[Install]
WantedBy=multi-user.target

Test

systemctl daemon-reload
systemctl start couchpotato.service
systemctl status couchpotato.service
ubuntu/startup_service/unit_file.1625820162.txt.gz · Last modified: 2021/07/09 08:42 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki