![]() In case of Linux systems, if you want to run Denodo Platform services as Linux services, it is necessary to: This document lists examples of scripts that can be used in Linux systems to automate the startup process of Denodo Platform services. Sep 12 08:10:00 jaktest1 daemon.notice pppd: pppd 2.4.The different services of Denodo Platform can be configured to be automatically started as part of an operating system’s startup process. Sep 12 08:10:00 jaktest1 user.notice root: ppp_on_boot Sep 12 08:10:00 jaktest1 user.notice root: Starting up PPP link: pppd Sep 12 08:10:00 jaktest1 user.notice root: timeout is 60 Sep 12 08:10:00 jaktest1 monit: 'ppp0' trying to restart Sep 12 08:10:00 jaktest1 daemon.err monit: 'ppp0' process is not running Sep 12 08:09:58 jaktest1 ntpd: peers refreshed Sep 12 08:09:56 jaktest1 daemon.notice pppd: Connection terminated. Sep 12 08:09:56 jaktest1 daemon.notice pppd: restoring old default route to eth0 Sep 12 08:09:56 jaktest1 pppd: Sent 0 bytes, received 0 bytes. Sep 12 08:09:56 jaktest1 pppd: Connect time 60.7 minutes. Sep 12 08:09:56 jaktest1 daemon.notice pppd: Modem hangup Sep 12 08:09:56 jaktest1 pppd: Hangup (SIGHUP) Starting Monit 5.12.2 daemon with http interface at :2812 Check status from a web browserĮxample /var/log/messages after PPP failure and Restart Sep 12 08:05:01 jaktest1 CROND: pam_unix(crond:session): session closed for user root Program stop = "/etc/init.d/lora-packet-forwarder stop" Program start = "/etc/init.d/lora-packet-forwarder start" We must now use the packet forwarder PID in the monit configuration file: # cd /etc/monit.dĬheck process lora-pkt-fwd-1 with pidfile /run/lora/lora-pkt-fwd-1.pid To set up lora-packet-forwarder: # cd /run/loraġ lora-network-server.db lora-pkt-fwd-1.pid # cd /runĬonfigure ppp as follows: # cd /etc/monit.dĬheck process ppp0 with pidfile /run/ppp0.pid ![]() You may create the configuration file with an editor of your choice. For ppp there are two identical pid files. Normally you will configure the status monitor based on a PID file found in the /run directory. Use the following: IP address]:2812Īt the login screen, enter the userid and password that was configured earlier in file monitrc. Starting Monit 5.12.2 daemon with http interface at :2812 Verify Monit is RunningĬonnect to the device by using a browser. Stop and Start Monit # /etc/init.d/monit stop To make it easier, start a service to be monitored. Now create the configuration for the services. ![]() Add the hostname as follows (substituting your own IP address): # echo 172.16.1.130 $(uname -n) >/etc/hosts The error occurs because the hostname is not in the /etc/hosts file. This may be tested with monit -t: # monit -tĬannot translate 'jaktest1' to FQDN name - Name or service not known Use address 0.0.0.0 # only accept connection from localhostĠ.0.0.0/0.0.0.0 # allow localhost to connect to the server and # sed -i 's/use address localhost/use address 0.0.0.0/' monitrc Use the 172.16.1.130 above or the address 0.0.0.0 if there are multiple home addresses (for instance ethernet and ppp). This could be a fixed address used by the device: # ip addr show eth0Ģ: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 Use address localhost # only accept connection from localhostĪllow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server and Now listen on all local addresses (or it could be the address range of the PC’s running a web browser): # sed -i 's?allow localhost?allow 0.0.0.0/0.0.0.0?' monitrc # sed -i 's/admin:monit/admin:mtech2205/' monitrcĪllow admin:mtech2205 # require user 'admin' with password 'monit' In file /etc/monitrc, you configure a userid and password for monit: # cd /etc ![]() Using localhost is not helpful without some kind of IP forwarding (not covered here). Operating a web browser on Conduit ® is not supported. This may be helpful in testing and setting up monit. You do not need to set up the addresses for monit, if you do not wish to monitor anything manually. Otherwise download monit, and install it on your system: # opkg install monit_5.12.2-r1.0_arm926ejste.ipk General configuration of monit Set up monit to start on boot: # sed -i 's/="no"/="yes"/' /etc/default/monit Package monit (5.12.2-r1.0) installed in root is up to date. If you have an internet connection: # opkg install monit Monit reconnects PPP and restarts lora-packet-forwarder for you automatically. NOTE: With regards to ppp connections and lora-packet-forwarder, carriers can log off PPP at any time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |