# NISBuildD **Repository Path**: qihexiang/nisbuildd ## Basic Information - **Project Name**: NISBuildD - **Description**: Auto rebuild NIS database when related files changed. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-01-11 - **Last Updated**: 2021-01-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README = NISBuildD NISBuildD is a daemon which can rebuild NIS database automatically. When changes happend on `/etc/passwd`, `/etc/shadow`, `/etc/group`, `/etc/gshadow`, this daemon will enter `/var/yp` and execute `make`. WARNING: If your distribution does`t put NIS database in `/var/yp`, you need to edit my code. To use it, you need to install `Node.js` and `npm` on your NIS master node. You can get my code by `git` , but need to install dependencies by yourself, like this: [source, bash] ---- git clone https://gitee.com/qihexiang/nisbuildd.git cd nisbuildd npm install ---- If you don`t like to install dependencies on your server, you can install them on your computer, and then make it a tarball: [source, bash] ---- cd .. tar czfv nisbuildd.tar.gz nisbuildd ---- And then upload it to your server. When it`s already on your server, for example, with path `/opt/nisbuildd`, you can write a systemd unit to control it, like this: [source, ini] ./etc/systemd/system/nisbuildd.service ---- [Unit] Description=NIS Database auto rebuild daemon [Service] Type=simple ExecStart=/usr/bin/node /opt/nisbuildd/index.js [Install] WantedBy=multi-user.target ---- After that, you can use `systemctl enabel nisbuildd --now` to make it working.