seho85 / klipper-dgus

A python project to connect a DGUS display to Klipper
GNU General Public License v3.0
44 stars 12 forks source link

Create stop script #21

Closed Robnex closed 2 years ago

Robnex commented 2 years ago

hey,

your could create a stop script like this one:

#!/bin/bash

echo "kill process"
kill $(ps -ef | grep "python3 main.py"  | grep -v grep | awk -F" " '{print $2}')
echo ""
echo "Show active python process"
ps -ef | grep "python3 main.py"  | grep -v grep | awk -F" " '{print $2}'
seho85 commented 2 years ago

The current systemd service implementation doesn't need any start script.

So closed because not needed anymore.