File: adt-initscript

package info (click to toggle)
hippotat 1.3.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 696 kB
  • sloc: sh: 407; makefile: 132; perl: 84; python: 79; ansic: 34
file content (23 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Tests that we can start, stop, and restart.

set -e
. "${0%/*}"/acommon

test-prep

test-service-startup-prep

# hippotatd is not actually running now because the init script checks
# if we have any configured endpoints, and doesn't run it if not.
# With sysvinit, "start" works to start the deaemon.
# With systemd, "start" doesn't work because systemd thought it
# started it when it was installed.  There's apparently a "pidfile"
# thing we could perhaps put in the LSB headers, but I couldn't find
# any formal documentation of it.  Instead, "restart" ought to DTRT.
service hippotatd restart

test-service-startup-main

t-ok