cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5007
Views
0
Helpful
4
Replies

Persistent scripts on bash shell

anuradha.waduge
Level 1
Level 1

I'm trying to run a persistent script on N3548 running nxos7.0(3)I7(9). Script has got three parts. (as per https://developer.cisco.com/docs/nx-os/#persistently-daemonizing-a-third-party/code-section-2)

1. Python script doing periodic show commands

2. shell script calling the python script from /etc/init.d

3. daemon file to start the shell script which get added to chkconfig level3. 

 

I can run the script by issuing a "./testdaemon start" and it works fine. However when the device get reboots, script doesn't starts automatically. 

 

Anyone running persistent scripts on N3548 on nxos7.0(3)I7(9)?

 

4 Replies 4

Sergiu.Daniluk
VIP Alumni
VIP Alumni

What user did you used for creating the scripts? Can you share a ls -l ?

 

Regards,

Sergiu

Hi Sergiu,

 

script was created as root and I've changed permission for all three files to 755. 

Did you tried with permissions as 777? If not, can you do it? In the link you shared the read/write/executable actions is set for group and others.

 

Cheers,

Sergiu

Still the same with 777. Fact that I can start the script by using "./xxx start" I'm thinking this may not be a permission issue, but it's not collecting the script from the init at the startup.