Dekihost needs access to a shell to run. In Debian, we've chosen to run dekihost as the same user as apache (www-data). However, you're free to run dekihost as any user. Here are the steps to run dekihost as a user named "dekihost"
adduser --system dekihost
Note: the --system option creates a user in the system UID range with no shell and logins disabled
mono requires a directory named .wapi in the home directory of the user running the mono process. To create this directory do the following:
mkdir /home/dekihost/.wapi chown dekihost /home/dekihost/.wapi
chown dekihost /var/www/deki-api.log /tmp/deki-api.pid
Edit the following file: /etc/init.d/dekihost
And change this line:
su www-data $DEKI_PATH/bin/mindtouch.host.sh start
to:
su -s /bin/bash -c "$DEKI_PATH/bin/mindtouch.host.sh start" dekihost
Then change:
su www-data $DEKI_PATH/bin/mindtouch.host.sh stop
to:
su -s /bin/bash -c "$DEKI_PATH/bin/mindtouch.host.sh stop" dekihost
Then restart dekihost in order for the changes to take affect
/etc/init.d/dekihost restart