Closed mzy2240 closed 1 year ago
I will do:
ps -ef | grep tt
to make sure TT process is running;./admin/ping.sh
to make sure TT does respond. You should be able to see 'pong' immediately. If not, then either host or port is not specified correctly, or TT is stuck.HTTP
or DEBUG
to get more details in logs. Please send us the log if you can't figure it out.Have you ever manually tested /home/khadas/ticktock/bin/tt -c /home/khadas/ticktock/conf/tt.conf
to make sure it works?
I tried the exact systemd config as yours, with one exception. I removed the 'User=...' entry; that is, I run the service as root. Seems to work for me.
yongtao@tsdb-h:/opt/ticktock$ sudo systemctl status ticktock ● ticktock.service Loaded: loaded (/etc/systemd/system/ticktock.service; disabled; vendor preset: enabled) Active: active (running) since Sun 2023-01-22 23:21:40 PST; 5min ago Main PID: 26788 (tt) Tasks: 15 (limit: 4625) Memory: 1.0M CPU: 543ms CGroup: /system.slice/ticktock.service └─26788 /opt/ticktock/bin/tt -c /opt/ticktock/conf/tt.conf
Jan 22 23:21:40 tsdb-h systemd[1]: Started ticktock.service. Jan 22 23:21:40 tsdb-h tt[26788]: Writing to log file: /opt/ticktock/log/ticktock.log Jan 22 23:21:42 tsdb-h systemd[1]: /etc/systemd/system/ticktock.service:1: Unknown section 'Uint'. Ignoring. yongtao@tsdb-h:/opt/ticktock$ ./admin/ping.sh pong yongtao@tsdb-h:/opt/ticktock$
I am trying to add ticktock to systemd so that it could auto-start on boot. The server seems to be running, but it does not respond to any connection. Here is the log from systemctl:
And this is the systemd config:
Any idea or example on this?