Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
qihexiang committed Sep 9, 2023
1 parent e366065 commit 76d4989
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# NISSYNCD: Automatically rebuild NIS database (in Rust)

The program is designed for computer clusters which share users and groups by NIS, which could watch for `/etc/passwd`, `/etc/shadow`, `/etc/group` and `/etc/gshadow` changing and run `make` in NIS directory automatically.

This program requires you to install `make` before use it.

## Environment variables

You can set a environment variables named `YP_DIRECTORY` to specify the NIS database directory. Default value is `/var/yp`.

## Build & Release

It's recommended to build the source code to `x86_64-unknown-linux-musl` target, that will make the program statically linked, and you could run it everywhere. The file provided in release page is compile to this target.

## systemd intergration

```ini
# /etc/systemd/system/nissyncd.service
[Unit]
Description=Rebuild NIS database automatically.

[Service]
Type=simple
# assumes that put the binary file in /usr/local/bin
ExecStart=/usr/local/bin/nissyncd

[Install]
WantedBy=multi-user.target
```
1 change: 0 additions & 1 deletion index.html

This file was deleted.

Empty file removed index.js
Empty file.

0 comments on commit 76d4989

Please sign in to comment.