templates/bin/stopserv.template@51d9a15eac98 (annotated)
templates/bin/stopserv.template
Sat, 22 Oct 2016 11:27:39 +0200
- author
- Olaf Wintermann <olaf.wintermann@gmail.com>
- date
- Sat, 22 Oct 2016 11:27:39 +0200
- changeset 115
- 51d9a15eac98
- parent 47
-
ce9790523346
- child 175
-
9823770ba4ee
- permissions
- -rw-r--r--
improves logging
replaces some printf calls with log_ereport
in non-daemon mode, log output is also written to stdout
31
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
1
|
#!/bin/sh
|
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
2
|
|
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
3
|
PID=`cat /tmp/webserver-rw6pgl8b/pid`
|
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
4
|
|
47
|
5
|
kill -TERM $PID
|
31
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
6
|
|