mirror of
https://github.com/dockur/windows.git
synced 2025-10-14 20:12:22 +00:00
feat: Kill Samba process via pid file
This commit is contained in:
parent
17db1ac34c
commit
72a441016c
10
src/power.sh
10
src/power.sh
@ -103,11 +103,19 @@ finish() {
|
||||
|
||||
pid="/var/run/tpm.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
rm -f "$pid"
|
||||
|
||||
pid="/var/run/wsdd.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
rm -f "$pid"
|
||||
|
||||
fKill "smbd"
|
||||
pid="/var/run/samba/nmbd.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
rm -f "$pid"
|
||||
|
||||
pid="/var/run/samba/smbd.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
rm -f "$pid"
|
||||
|
||||
closeNetwork
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user