mirror of
https://github.com/TokTok/c-toxcore
synced 2026-05-14 12:35:14 +00:00
1.5 KiB
1.5 KiB
##Instructions for Debian
The following commands are to be executed as root:
- In
tox_dht_bootstrap_server_daemon.shfile change:
CFGto where your config file (conf) will be; read rights requiredDAEMONto point to the executablePIDFILEto point to a pid file daemon would have rights to create
-
Go over everything in
conf. Make surepid_file_pathmatchesPIDFILEfromtox_dht_bootstrap_server_daemon.sh -
Execute:
mv tox_dht_bootstrap_server_daemon.sh /etc/init.d/tox_dht_bootstrap_server_daemon
(note that we removed .sh ending)
- 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
Note that system log is where you find your public key
--
###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_daemonare valid -
Make sure that
PIDFILEfrom/etc/init.d/tox_dht_bootstrap_server_daemonmatches with thepid_file_pathfromconf -
Make sure you have write permission to keys and pid files
-
Make sure you have read permission for config file