1.4 KiB
Instructions for Debian
The following commands are to be executed as root:
- In
tox-dht-bootstrap-server-daemon
file change:
CFG
to where your config file (conf
) will be; read rights requiredDAEMON
to point to the executablePIDFILE
to point to a pid file daemon would have rights to create
-
Go over everything in
conf
. Make surepid_file_path
matchesPIDFILE
fromtox-dht-bootstrap-server-daemon
-
Execute:
mv tox-dht-bootstrap-server-daemon /etc/init.d/tox-dht-bootstrap-server-daemon
-
Give the right permissions to this file:
chmod 755 /etc/init.d/tox-dht-bootstrap-server-daemon
-
Execute:
update-rc.d tox-dht-bootstrap-server-daemon defaults
-
Start the service:
service tox-dht-bootstrap-server-daemon start
-
Verify that the service is running:
service tox-dht-bootstrap-server-daemon status
You can see daemon's log with grep "tox-dht-bootstrap-server-daemon" /var/log/syslog
Troubleshooting:
-
Check the log for errors with
grep "tox-dht-bootstrap-server-daemon" /var/log/syslog
-
Check that paths in the beginning of
/etc/init.d/tox-dht-bootstrap-server-daemon
are valid -
Make sure that
PIDFILE
from/etc/init.d/tox-dht-bootstrap-server-daemon
matches with thepid_file_path
fromconf
-
Make sure you have write premmision to keys and pid files
-
Make sure you have read premission to config file