mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Use PID for Samba process (#1454)
This commit is contained in:
parent
17db1ac34c
commit
3ab5c25152
2 changed files with 22 additions and 12 deletions
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…
Add table
Add a link
Reference in a new issue