Snek cleanup, fix win, use systemd now
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
- synchronize: src=../.. dest=/home/pi/sejf
|
||||
- synchronize: src="custom/{{ inventory_hostname }}" dest=/home/pi/sejf/raspi
|
||||
ignore_errors: yes
|
||||
- file: path=/etc/xdg/autostart/pprompt.desktop state=absent
|
||||
- copy: src=sejf.service dest=/etc/systemd/system/sejf.service
|
||||
- systemd: name=sejf state=restarted enabled=yes
|
||||
- copy: src=autostart dest=/home/pi/.config/lxsession/LXDE-pi/autostart
|
||||
- copy: src=sejf.desktop dest=/etc/xdg/autostart
|
||||
- apt: name=python-flask state=present
|
||||
- apt: name=avrdude state=present
|
||||
- file: path=/etc/xdg/autostart/pprompt.desktop state=absent
|
||||
- file: path=/etc/xdg/autostart/sejf.desktop state=absent
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=sejf
|
||||
NoDisplay=true
|
||||
Exec=/home/pi/sejf/raspi/run.sh
|
||||
Terminal=true
|
||||
NotShowIn=GNOME;KDE;XFCE;
|
||||
13
raspi/mgmt/sejf.service
Executable file
13
raspi/mgmt/sejf.service
Executable file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=sejf
|
||||
After=lightdm.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python /home/pi/sejf/raspi/pySejf.py
|
||||
Restart=always
|
||||
Environment=DISPLAY=:0
|
||||
User=pi
|
||||
KillSignal=SIGKILL
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user