[Unit] Description=LAN file share on port 18801 (/home/pc/00-safe-tran) After=network.target [Service] Type=simple WorkingDirectory=/home/pc/00-safe-tran/01-trans-server ExecStart=/usr/bin/python3 /home/pc/00-safe-tran/01-trans-server/file_server.py --root /home/pc/00-safe-tran --host 0.0.0.0 --port 18801 Restart=always RestartSec=3 StandardOutput=journal StandardError=journal SyslogIdentifier=lan-file-share-18801 NoNewPrivileges=true PrivateTmp=true [Install] WantedBy=default.target