File: reboot

package info (click to toggle)
nginx 1.28.2-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 9,972 kB
  • sloc: ansic: 169,643; sh: 819; perl: 439; python: 240; makefile: 130; cpp: 19
file content (15 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# 20220710
# Jan Mojzis
# Public domain

#change directory to $AUTOPKGTEST_TMP
cd "${AUTOPKGTEST_TMP}"

# do simple curl
curl --silent --fail -o /dev/null -w "response_code: %{http_code}\n" http://127.0.0.1/

# test if nginx runs after reboot
if [ x"${AUTOPKGTEST_REBOOT_MARK}" = x ]; then
  /tmp/autopkgtest-reboot rebootmark
fi