Turgut Kalfaoglu
Regular Contributor
Hi folks. I recently put something like this in my /jfss/scripts/services-start :
/opt/sbin/screen -dmS hep-sync-ns bash -c '/opt/bin/hep-sync-ns.rexx; exec bash'
(I have a name server running on the router, and the hep-sync-ns is a script that sleeps for a while and then syncs with its source DNS server)
But I often find that that screen is "dead" like this:
# screen -r
There is a screen on:
4079.pts-0.ns2 (Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed.
turgut@ns2:/tmp/mnt/2TBEXTERNAL/entware/etc/init.d# screen -wipe
There is a screen on:
4079.pts-0.ns2 (Removed)
1 socket wiped out.
No Sockets found in /opt/tmp/screens/S-turgut.
Why does it die? I have ample swap space defined and enabled even.. The script that is launched and runs in an infinite loop is very simple.
Many thanks, -t
/opt/sbin/screen -dmS hep-sync-ns bash -c '/opt/bin/hep-sync-ns.rexx; exec bash'
(I have a name server running on the router, and the hep-sync-ns is a script that sleeps for a while and then syncs with its source DNS server)
But I often find that that screen is "dead" like this:
# screen -r
There is a screen on:
4079.pts-0.ns2 (Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed.
turgut@ns2:/tmp/mnt/2TBEXTERNAL/entware/etc/init.d# screen -wipe
There is a screen on:
4079.pts-0.ns2 (Removed)
1 socket wiped out.
No Sockets found in /opt/tmp/screens/S-turgut.
Why does it die? I have ample swap space defined and enabled even.. The script that is launched and runs in an infinite loop is very simple.
Many thanks, -t
Last edited: