Closed joti-prime closed 4 months ago
Try to add your command to start service to:
~/.bashrc
How? And where?
/home/container/.bashrc
I put this inside the .bashrc file: nginx -s reload || nginx and is not working
I will create a script to make it simple for everyone. Please use Void Linux
for now, which autostarts nginx by default.
Will be interesting to have an script or env variable or something to autostart things (Nginx is an example, so must work with most of the things)
Yes, you can create an script and customize it as you want, i will create one soon!
Nice, please send me a comment when you have the script.
For example, I am using Ubuntu and have installed Nginx. However, after rebooting, I need to manually enable it again using the Nginx command. Is there any way to configure it to start automatically? Any suggestions?