fix errors and warnings in scripts
This commit is contained in:
1 parent
4a8ea1b190
commit
3341df9c89
8 files changed
+12
-12
No files matched your search
@@ -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 $?
|
||||
|
||||
Reference in new issue
Block a user