More Termux sauce

This commit is contained in:
Geoffrey Frogeye 2017-09-17 18:39:54 +02:00
parent eeb061a032
commit f9975b004d
6 changed files with 3 additions and 8 deletions

View file

@ -9,14 +9,12 @@ LOGFILE="$HOME/.local/log/autosvc.log"
start() {
printf "Starting autosvc: "
start-stop-daemon -p "$PIDFILE" -x /data/data/com.termux/files/usr/bin/bash -S -b -m -- "$HOME/.termux/scripts/autosvc" -d -l "$LOGFILE"
termux-toast "Started autosvc"
echo "OK"
}
stop() {
printf "Stopping autosvc: "
start-stop-daemon -p "$PIDFILE" -x /data/data/com.termux/files/usr/bin/bash -K
termux-toast "Stopped autosvc"
echo "OK"
}