NAR allows to reload nginx without an administrator. When vhost file has changed, if users have their own vhost files, server needs to be reloaded to apply the changes. But reloading a server needs administrator's permission, so users have to wait until a server has reloaded by administrator. With NAR, these annoying tasks would be gone.
Users can notify to NAR daemon that their vhost file has changed just by using nar
command. Receiving a notification, NAR daemon reloads nginx automatically.
- NAR is written in Node.js, so Node.js must be installed to use NAR.
- First, start a NAR daemon with
$sudo node nar -d
. You can set interval by using-i
option. - When vhost file has changed, run
$node nar
to notify a change. - If you want to terminate NAR daemon, use
$sudo node nar -t
.
- NAR is under MIT License.