mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
.. | ||
conf | ||
Makefile.inc | ||
README.md | ||
tox-bootstrapd.c | ||
tox-bootstrapd.sh |
##Instructions for Debian
The following commands are to be executed as root:
- In
tox-bootstrapd.sh
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-bootstrapd.sh
-
Execute:
mv tox-bootstrapd.sh /etc/init.d/tox-bootstrapd
(note that we removed .sh
ending)
- Give the right permissions to this file:
chmod 755 /etc/init.d/tox-bootstrapd
- Execute:
update-rc.d tox-bootstrapd defaults
- Start the service:
service tox-bootstrapd start
- Verify that the service is running:
service tox-bootstrapd status
--
You can see daemon's log with
grep "tox-bootstrapd" /var/log/syslog
Note that system log is where you find your public key
--
###Troubleshooting:
- Check the log for errors with
grep "tox-bootstrapd" /var/log/syslog
-
Check that paths in the beginning of
/etc/init.d/tox-bootstrapd
are valid -
Make sure that
PIDFILE
from/etc/init.d/tox-bootstrapd
matches with thepid_file_path
fromconf
-
Make sure you have write permission to keys and pid files
-
Make sure you have read permission for config file