void-packages/srcpkgs/openbazaar/files/void_service.EXAMPLE

16 lines
224 B
Plaintext
Raw Normal View History

2016-12-25 13:44:00 +01:00
#!/bin/sh
exec 2>&1
USER=user
LOG=/var/log/openbazaar.log
if [ ! -d $LOG ];
then
touch $LOG
chown $USER:$USER $LOG
fi
#openbazaard looks for ob.cfg in PWD
cd /etc
exec > $LOG
exec chpst -u$USER:$USER openbazaard start