moth/tools/run-moth

11 lines
160 B
Plaintext
Raw Normal View History

2017-08-05 22:12:34 -06:00
#! /bin/sh
user=$1
uid=$(id -u $user)
su -s /srv/moth/mothd $user &
cd /srv/moth/default/www
exec s6-tcpserver -u $uid 0.0.0.0 80 /usr/local/bin/eris -. -c