On 09/04/13 09:05, Mark Rogers wrote:
On 8 April 2013 20:25, Chris Walker cdw_alug@the-walker-household.co.uk wrote:
So I need to work out where to put it so that it runs but runs safely.
I think that the location looks OK, so I think it's the script that needs tweaking (albeit that it works fine if run manually).
Can you post the script content? I assume it's similar to the lines in the original post with something like #!/bin/bash at the top but assumptions aren't great when troubleshooting!
It's exactly the same. I just did a cut and paste from the email I'd sent.
Also, the output from: ls -la /etc/sysconfig/network-scripts/ifup.d/rpc_tables_up .. to confirm ownership and permissions.
ls -l /etc/sysconfig/network-scripts/ifup.d/rpc_tables_up -rwxr-xr-x 1 root root 294 Apr 8 19:18 /etc/sysconfig/network-scripts/ifup.d/rpc_tables_up*
When you run it manually (and it works), are you just doing: sudo /etc/sysconfig/network-scripts/ifup.d/rpc_tables_up or something different?
Nope. That's exactly what I'm doing.