# Persistent kernel deployment on Raspberry Pi

Posted 2 months ago
392 Views
|
2 Replies
|
1 Total Likes
|
 Hi guys, This is my first submission on the community so I hope I posted it in the right board. I have been working on a raspberry pi device that needs to perform run a basic WL script at startup - load packages and call a couple of functions. The "issue" I'm having is that the kernel shuts down at the end of the script and I haven't been able to figure out a better solution to keep it running other than put an infinite loop at the bottom. directory = "/My/directory/parentfolder/"; SetDirectory[directory]; <
2 Replies
Sort By:
Posted 2 months ago
 Hi John, thanks for the assist. I am sorry, I should have been more specific. This is not a package loading issue. The code I posted is part of a wolfram script startupSequence.wls which I run on boot every time my device is powered up. My question is exactly how do I keep the kernel from quitting. I understand it quits when reaches the end of the file. In fact, I tried to include \$IgnoreEOF = True `In the script but it did not work (sort of expected it not to, really). So, my question is: what is the best approach to keep a live kernel running after executing a few simple commands (as in the script)? Is the solution I posted a good one (doesn't seem to me, but, hey, what do I know), or building a simple WSTP program and spinning it up at every boot is really the most reliable way to go?I appreciate your time and assistanceBest