fix errors and warnings in scripts

This commit is contained in:
wt committed 2024-11-01 15:33:36 +07:00
1 parent 4a8ea1b190
commit 3341df9c89
8 files changed
+12 -12

No files matched your search

+2 -2
View File
@@ -9,13 +9,13 @@ start() {
notify "Starting telnetd"
/usr/bin/telnetd -p 23
check $? "start telnetd"
echo $(gprep telnetd) > /var/run/telnetd.pid
echo $(pgrep telnetd) > /var/run/telnetd.pid
return $?
}
stop() {
notify "Stopping telnetd"
kill $(cat /var/run/telnetd.pid)
kill $(cat /var/run/telnetd.pid | awk '{ print $2 }')
check $? "stop telnetd"
rm /var/run/telnetd.pid &> /dev/null
return $?