-
Notifications
You must be signed in to change notification settings - Fork 12
Run
Use ./glonassd start command for start daemon from daemon folder, stop | restart parameters for stop and restart daemon.
Use -c path/to/config/file parameter for config file not in daemon folder.
Use service glonassd start and service glonassd stop for start/stop if daemon configured to automatically startup.
Edit DAEMON variable in glonassd.sh file for correct path to daemon folder.
Copy glonassd.sh file in /etc/init.d folder.
Use chmod 0755 /etc/init.d/glonassd.sh for make it executable.
Use systemctl daemon-reload and update-rc.d glonassd.sh defaults for enable autostart daemon.
Use update-rc.d -f glonassd.sh remove for diasble autostart without delete glonassd.sh file.
Delete /etc/init.d/glonassd.sh file and use systemctl daemon-reload for fully cleanup daemon info.
Start process of daemon logged as:
21.02.17 08:34:57 glonassd[8037] started
21.02.17 08:34:57 logger[8038]: started
21.02.17 08:34:57 listener[nts] started on port 50100
21.02.17 08:34:57 listener[satlite] started on port 50101
21.02.17 08:34:57 listener[galileo] started on port 50102
21.02.17 08:34:57 listener[gps103] started on port 50103
21.02.17 08:34:57 database thread[8039] started, queue size 65536 msgs
21.02.17 08:34:57 listener[wialonips] started on port 50104
21.02.17 08:34:57 listener[soap] started on port 50105
21.02.17 08:34:57 listener[egts] started on port 50106
21.02.17 08:34:57 listener[fava] started on port 50107
21.02.17 08:34:57 listener[arnavi] started on port 50109
21.02.17 08:34:57 1 timers started
21.02.17 08:34:57 forwarder[orange_egts][8041] started
21.02.17 08:34:57 forwarder[rnic_e][8042] started
21.02.17 08:34:57 forwarder[tu_gal][8043] started
21.02.17 08:34:57 forwarder[tu_sat][8044] started
21.02.17 08:34:57 database thread[8039]: Connect to database locman on host 192.168.101.212:5432.
21.02.17 08:34:57 forwarder[tu_gal][8043]: remote host 84.235.146.31:50104 connected
21.02.17 08:34:57 forwarder[tu_sat][8044]: remote host 84.235.146.31:50103 connected
21.02.17 08:34:57 forwarder[rnic_e][8042]: remote host 82.140.30.175:9201 connected
21.02.17 08:34:57 forwarder[orange_egts][8041]: remote host 193.193.165.166:20629 connected
where glonassd[PID] for example.
Use cat /var/log/glonassd.log for view problems.
Use grep glonassd /var/log/syslog for view big problems.