blob: 674ed2569967db45cfce7d5f974b15f94d010d6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Stop it gracefully
pkill -INT xds-server
sleep 1
# Seems no stopped, nasty kill
nbProc=$(ps -ef |grep xds-server |grep -v grep |wc -l)
if [ "$nbProc" != "0" ]; then
pkill -KILL xds-server
fi
nbProc=$(ps -ef |grep syncthing |grep -v grep |wc -l)
if [ "$nbProc" != "0" ]; then
pkill -KILL syncthing
pkill -KILL syncthing-inotify
fi
exit 0
|