增加自启动

This commit is contained in:
朱潮 2025-09-25 09:40:12 +08:00
parent 997691cc2b
commit d1193381ac

17
local-voice.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=Local Voice Multiprocess Recorder with NFC
After=network.target
Wants=network.target
[Service]
Type=simple
User=zhuchaowe
WorkingDirectory=/home/zhuchaowe
ExecStart=/usr/bin/python3 /home/zhuchaowe/Local-Voice/multiprocess_recorder.py --enable-nfc
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target