I think pager is down
Need restart againThanks! I have restarted it.
Thanks! I have restarted it.
can't you just set a cronjob to restart every 15minutes?
Hi,
I must have an active ssh connection to my cloud server, aws instance. If my home internet resets itself or disconnects, the connection will be gone and the aws will log out of itself. Have to sign in again. So even if i set a cron job, it would be pointless because the cronjob wont be trigggered. Do correct me if i'm wrong though.
??? u mean u restart e whole server instance when yr pager crashes?
Hi,
Sry maybe i nvr explain clearly enough. A lot of technical words here, very hard to explain in layman terms.
Okay my pager rarely crashes due to errors/bugs, most of the time it stops functioning is because the active ssh connection to the aws instance disconnects due to my home internet resetting itself and so on. Singtel always likes to reset the dhcp service. Once it disconnects, the script stops running because the aws instance will auto logout itself. So any script, even cronjob wont help because im logout of the instance. So i have to login the instance again and restart the pager. Maybe my understanding is wrong here.
The script should always continue running even when i face this disconnection issue. I don't really know how to let the script continue running in the background even when there's any disconnection. Any sexperts here can advise?
You definitely should not need to maintain an ssh connection to keep a script running.Hi,
Sry maybe i nvr explain clearly enough. A lot of technical words here, very hard to explain in layman terms.
Okay my pager rarely crashes due to errors/bugs, most of the time it stops functioning is because the active ssh connection to the aws instance disconnects due to my home internet resetting itself and so on. Singtel always likes to reset the dhcp service. Once it disconnects, the script stops running because the aws instance will auto logout itself. So any script, even cronjob wont help because im logout of the instance. So i have to login the instance again and restart the pager. Maybe my understanding is wrong here.
The script should always continue running even when i face this disconnection issue. I don't really know how to let the script continue running in the background even when there's any disconnection. Any sexperts here can advise?
You definitely should not need to maintain an ssh connection to keep a script running.
See this link:
https://www.maketecheasier.com/run-bash-commands-background-linux/
You can also use the "screen" utility to run your script. You can attach and detach from different "screens".
https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/
yes agree with you about starting daemons. Kumamon seems to have problem running his script in cron so i didnt want to confuse him bout rc scripts and systemd. Let him get his script running without an ssh connection first then fix the cronjob. Probably due to his script not sourcing his env. Using supervisord to start and monitor daemons is better than checking nanually with cronjob.This works, but it is not necessary. That is not how daemon processes should be started. There are 2 main ways of doing so.
One is create a service in the linux and have the init process start it up during system start up or manually invoke the service to start up.
The other way is basically create a cron job which will periodically check if the daemon is started using simple techniques like PS for the process and grep for certain keywords or check against a lock file or pid file. Startup the script using the cron if the process is not running.
You don*********t need to resort to using a virtual TTY such as screen for such purposes.
Got new updates meh?
Suddenly realised the format/GUI is different when replying quote.
hi kuma-mon,
is it possible to implement these 2 new functions in your app?
1) delete post function
2) the ability to scroll freely to any page when im at a particular page. lets say im in a topic with 30 pages. im at page 21, i should be able to scroll freely from page 21 to page 1 or page 21 to page 30. currently if i jump to page 21, i can ONLY view page 21 and not other pages
the refresh ability to check for new posts also buggy, otherwise i think it's a very good app u have created.
hi kuma-mon,
is it possible to implement these 2 new functions in your app?
1) delete post function
2) the ability to scroll freely to any page when im at a particular page. lets say im in a topic with 30 pages. im at page 21, i should be able to scroll freely from page 21 to page 1 or page 21 to page 30. currently if i jump to page 21, i can ONLY view page 21 and not other pages
the refresh ability to check for new posts also buggy, otherwise i think it's a very good app u have created.