We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f424c58 commit abe2232Copy full SHA for abe2232
irods/test/harness/manage_irods5_procs
@@ -1,9 +1,15 @@
1
if [ "$1" = "start" ]; then
2
sudo su - irods -c 'irodsServer -d -p /tmp/irods.pid'
3
+elif [ "$1" = "start-bg" ]; then
4
+ sudo su - irods -c 'irodsServer --stdout -p /tmp/irods.pid >/tmp/irods.log &'
5
elif [ "$1" = "status" ]; then
6
pgrep -afl "irods(Delay|Agent|Server)"
7
elif [ "$1" = "stop" ]; then
- sudo su - irods -c 'kill -QUIT $(cat /tmp/irods.pid)'
8
+ sudo su - irods -c 'kill -QUIT $(cat /tmp/irods.pid) && rm -f /tmp/irods.pid'
9
+elif [ "$1" = "wait" ]; then
10
+ sudo su - irods -c '
11
+ pid=`cat /tmp/irods.pid 2>/dev/null`;
12
+ [ -n "$pid" ] && { while ps -eo pid |grep $pid >/dev/null 2>&1; do sleep 1; done; }'
13
else
14
echo >&2 "usage: $0 [start|status|stop]"
15
exit 2
0 commit comments