Skip to content

Commit 9b4493c

Browse files
authored
Update restart_printer
There are instances where lpd failed to be stopped thus hogging port 515. Now attempt to stop the service first, and force kill it if still running before starting it again.
1 parent e12ceb3 commit 9b4493c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

jffs/scripts/restart_printer

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
service restart_lpd
1+
service stop_lpd
2+
for pid in $(pidof lpd); do kill -9 $pid; done
3+
service start_lpd
24
service restart_u2ec

0 commit comments

Comments
 (0)