mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-01 11:31:28 +00:00
14 lines
365 B
Bash
Executable File
14 lines
365 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Test init.d-style initialization; run this script as root (or sudo it)
|
|
|
|
export key=`./exmachina.py --random-key`
|
|
|
|
echo $key | ./exmachina.py -vk --pidfile /tmp/exmachina_test.pid -g www-data
|
|
sleep 1
|
|
echo $key | sudo -u www-data -g www-data ./test_exmachina.py -k
|
|
|
|
kill `cat /tmp/exmachina_test.pid` && rm /tmp/exmachina_test.pid
|
|
sleep 1
|
|
jobs
|