the following short bash program described how to execute the func1 by process ( func1 & )
func1 is function that do some tests and verification on Linux machines
And this program run after reboot from /etc/rc3.d
I want to ask if it possible to create from func1 a process in spite this bash script will ended immediately after process creation? And if this action is illegal?
and if this not illegal please advice about other option ?
I ask this question because after reboot process not created from func1 And I don't know why maybe because this process created before program ended ?
remark – if I run this bash script from console ( without reboot ) then process created without problems
bash script program:
#!/bin/bash
func1 ()
{
.
.
do something
.
.
}
func1 &