File: test-gui-daemon

package info (click to toggle)
isenkram 0.69
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,356 kB
  • sloc: python: 560; sh: 321; perl: 53; makefile: 25
file content (25 lines) | stat: -rwxr-xr-x 372 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

PATH=/usr/sbin:$PATH
export PATH

at_exit() {
    echo "info: test exiting"
}

trap at_exit INT TERM EXIT

echo info: starting daemon

# Redirect stderr because no display causes something to emit
# "Unable to init server: Could not connect: Connection refused" to stderr
DISPLAY= isenkramd 2>&1 &

pid=$!

sleep 5

echo info: stopping daemon
kill $pid