06-16-2016 11:38 AM
I'm trying to set up a couple of scripts as startup daemons on my cRIO. I can't find the /etc/init.d/skeleton
template on this distro, though. Can someone provide it or point me to a valid copy elsewhere on the internet? Or answer whether this one will work?
Solved! Go to Solution.
06-16-2016 11:45 AM
That listed one is a reasonable starting place, but as I recall, there was some issue using start-stop-daemon's signalling. Additionally, not all of the utility scripts sourced in that example exist on the distro, so you'd want to remove those. Unfortunately, quite a bit of the rest of the scripting uses the functionality provided by those utility scripts, so you'd probably spend less time just using one of the existing scripts on the target, copying it, and modifying it for your needs.
06-16-2016 11:50 AM
Thanks. Can you provide a path to one I should use as a starting point? Or list out the features that do and don't exist on NI's distribution? Need some better documentation on this stuff since it's a custom distro.
06-16-2016 01:17 PM
The sshd script is a pretty reasonable starting-point, you can trim out the bits dealing with nirtcfg (it can be useful for other things later, if you so choose).
The issue with meddling with the underlying OS is that is not something technically supported by NI. This forum is seen as a reasonable middle-ground for both NIers and those with some Linux experience to share and collaborate.
06-16-2016 01:37 PM
I get that, which is why I post here so often. And I'm deeply grateful for all the help you lend. But NI created a custom Linux distro with gotchas and undocumented limitations, and that creates a debt of support for the thing if they want people to use it. A policy of "we don't support that because it's too advanced/hard" undermines the company's and the product's credibility.
But like I said, I'm gateful for your help. Off to write an init script...
06-16-2016 02:11 PM
Staab_Engineering wrote:
...
But NI created a custom Linux distro with gotchas and undocumented limitations, and that creates a debt of support for the thing if they want people to use it.
...
For the ways in which NI supports that the controllers are used, it is documented (in a few languages).
...
A policy of "we don't support that because it's too advanced/hard" undermines the company's and the product's credibility.
...
If you wanted some additional resources, there are a few tutorials covering the topic of startup scripts: Tutorial: Installing Startup Scripts on NI Linux Real-Time Deploy a startup application using Eclipse (additionally, there are online resources. The one you found just happened to expect that certain utility scripts existed for use in the startup scripts).
06-16-2016 02:28 PM
Oh, well...yeah. That's, like, exactly what I needed. Thanks for the (first) link!