frenziedengi
Dabbler
- Joined
- Feb 22, 2013
- Messages
- 14
Hi.
I am looking to run a script (via /bin/sh) at shutdown.
I have a working script, stored on a ZFS volume.
The script requires network connectivity (to send commands to another server via SSH), and the ZFS volume to be mounted (it is normally mounted when the system is running).
I can successfully run the script via command line when I SSH into my server (as root). However, when added to the Init/Shutdown section via the web interface, it does not seem like it is even (attempted) to be executed.
I have added it as:
Type: Script
Script: Full path to script (/mnt/tank/.../myscript.sh)
Type: Shutdown
The first line of the script is:
I am running 9.2.1.5-RELEASE.
Any tips on how to debug this or provide more information would be appreciated.
I am looking to run a script (via /bin/sh) at shutdown.
I have a working script, stored on a ZFS volume.
The script requires network connectivity (to send commands to another server via SSH), and the ZFS volume to be mounted (it is normally mounted when the system is running).
I can successfully run the script via command line when I SSH into my server (as root). However, when added to the Init/Shutdown section via the web interface, it does not seem like it is even (attempted) to be executed.
I have added it as:
Type: Script
Script: Full path to script (/mnt/tank/.../myscript.sh)
Type: Shutdown
The first line of the script is:
Code:
#!/bin/sh
I am running 9.2.1.5-RELEASE.
Any tips on how to debug this or provide more information would be appreciated.