TransWikia.com

Ubuntu 18.04 custom Service start ( nginx ) on instance reboot/start

Server Fault Asked on December 5, 2021

OS : Ubuntu 18.04

We have requirement, to service nginx reload after nginx service has started successfully on aws instance start / reboot.

I tried tinkering init.d/nginx but I don’t see reload happened or not

    start)
            log_daemon_msg "Starting $DESC" "$NAME"
            start_nginx
            case "$?" in
                    0|1) reload_nginx
                         log_end_msg $?
                         log_end_msg 0 ;;
                    2)   log_end_msg 1 ;;
            esac
            ;;
   

Am I doing in right way are in there any better way to do it.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP