File: reboot

package info (click to toggle)
nginx 1.28.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,696 kB
  • sloc: ansic: 169,569; sh: 623; perl: 439; python: 240; makefile: 130; cpp: 19
file content (15 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (4)
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