Hello, I created a shell script in /etc/init.d and it already runs at boot. However I cannot figure out how to make it run just like typing "scrip_name start"
I can run it like this ./script_name but since I am doing remote log in whenever I log off the script stops and I also don't want to run nohup
How can I create the option or just start? I need to send the command from a windows machine using plink
Thanks for your reply. I just tried that and I could actually run name_of_script start and it would start but the problem is since I am login in remotely as soon as I close the terminal the script stops =/
If you don't want to use nohup, you'll have to redirect it's stdin, stdout, and stderr to files or /dev/null yourself. Otherwise these resources will cease to exist when you close your terminal.