Termux SSHD service

This commit is contained in:
Geoffrey Frogeye 2017-09-17 11:57:44 +00:00
parent caf49db140
commit 96751acaab
2 changed files with 62 additions and 1 deletions

View file

@ -22,7 +22,7 @@ stop() {
status() {
printf "Syncthing: "
PID="$(sudo cat "$PIDFILE")"
PID="$(sudo cat "$PIDFILE" 2> /dev/null)"
if [[ -n "$PID" && -d "/proc/$PID" ]]
then
echo "running"