21 lines
425 B
Plaintext
21 lines
425 B
Plaintext
sudo nano /etc/systemd/system/digit_detection.service
|
|
|
|
|
|
|
|
|
|
[Unit]
|
|
Description=Digit Detection Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=root
|
|
WorkingDirectory=/root/EdgeAI
|
|
ExecStart=/root/ml_env/bin/python -u /root/EdgeAI/app.py
|
|
Restart=always
|
|
Environment="PATH=/root/ml_env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|