Skip to content

Looking for working Autostart script for raspberrypi p3 #98

@v222008

Description

@v222008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions