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