So as it stands currently I have to run the following shell line everytime the jail restarts, through web interface:
Upon researching the subject I learned about rc.d scripts. I then proceeded to create the below scripts (2 versions of the same thing that I though might work, based on other scripts I have seen) and placed it in /usr/local/etc/rc.d/
Also added the following line to /etc/rc.conf
Unfortunately both versions did not work so I though it might be time to ask for input.
I would like to automate this.~/./script1.sh arg0 arg1
Upon researching the subject I learned about rc.d scripts. I then proceeded to create the below scripts (2 versions of the same thing that I though might work, based on other scripts I have seen) and placed it in /usr/local/etc/rc.d/
Also added the following line to /etc/rc.conf
scr0_enable ="YES"
Code:
#!/bin/sh # PROVIDE: script0 # REQUIRE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name=scr0 rcvar=scr0_enable ~/./script0.sh arg1 arg2 run_rc_command "$1"
Code:
#!/bin/sh # PROVIDE: script0 # REQUIRE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name=scr0 rcvar=scr0_enable load_rc_config $name command=/script0.sh command_args="arg0 arg1" run_rc_command "$1"
Unfortunately both versions did not work so I though it might be time to ask for input.