Snek cleanup, fix win, use systemd now

This commit is contained in:
2017-09-13 16:12:50 +02:00
parent 30d7ea815e
commit b2dc07dc5b
6 changed files with 37 additions and 35 deletions

View File

@@ -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

View File

@@ -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
View 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