-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
script running well only run as root cd /home/pi/autowx2 and run manualy file autowx2.py
not works on start script
#!/bin/bash
cd /home/pi/autowx2/
python autowx2.py &
or
/usr/bin/tmux new-session -d 'python /home/pi/autowx2/autowx2.py'
or
sudo nano /lib/systemd/system/autowx2.service
[Unit]
Description=autowx2
After=multi-user.target
[Service]
Restart=always
RestartSec=10
WorkingDirectory=/home/pi/autowx2
ExecStart=/usr/bin/python /home/pi/autowx2/autowx2.py
[Install]
WantedBy=multi-user.target
sudo chmod 644 /lib/systemd/system/autowx2.service
sudo systemctl daemon-reload
sudo systemctl enable autowx2.service
sudo systemctl start autowx2.service
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels