GitXplorerGitXplorer
n

unifi-systemd-units

public
19 stars
0 forks
2 issues

Commits

List of commits on branch main.
Verified
1f3c57637306e126aec914fa034435f4b57e7ec9

Update README.md

nntkme committed 2 years ago
Unverified
7e67cacca4ded20bc16c5299d8b8a1100427cfcc

Bump actions/checkout from 2 to 3

ddependabot[bot] committed 3 years ago
Unverified
11a2e98022e7d2e4cfb68be06c606a152f7b08fd

Update services

nntkme committed 3 years ago
Verified
58e9b205a52a74c0194843326723576b796662f7

Update unifi-entrypoint@.service

nntkme committed 3 years ago
Unverified
c8981394c1e0ca4fe9307a66abad878f650f8651

Update docker tags

nntkme committed 3 years ago
Unverified
9799108b6d168b7593c687d6ccb3a73f5af66d6a

Add dependabot.yml

nntkme committed 3 years ago

README

The README file for this repository.

unifi-systemd-units

build

Systemd units for unifi-systemd container

Usage

Install unifi-systemd

  • UniFi OS >=1.10.0 <2.0.0 is required.

Install unifi-systemd.

podman exec unifi-os sh -c "curl -fsSLo /tmp/unifi-systemd_1.0.0_all.deb https://github.com/ntkme/unifi-systemd/releases/download/v1.0.0/unifi-systemd_1.0.0_all.deb && dpkg -i /tmp/unifi-systemd_1.0.0_all.deb && rm /tmp/unifi-systemd_1.0.0_all.deb"

Install systemd Units

Install systemd units from this repository to /mnt/data/etc/systemd/system.

curl -fsSL https://github.com/ntkme/unifi-systemd-units/archive/HEAD.tar.gz | tar -vxzC /mnt/data --strip-components 1 --exclude '*/.github' --exclude '*/docs' --exclude '*/test' --exclude '*/*.md' --exclude '*/LICENSE' && unifi-systemd reload

Manage systemd Units

unifi-systemd is a container that runs systemd and nested podman containers.

Use unifi-systemd shell to enter the container shell to interact with systemctl and podman.

See the links below for documentation of services provided by this repository.

To create a new container service unit, see podman-generate-systemd(1).

Config and Data Directories

Backup

It is recommended to gracefully stop all services with unifi-systemd stop before create a backup. Services can be restarted with unifi-systemd start.

By default, the following directories are used to store config and data.

  • /mnt/data/etc
  • /mnt/data/var
Store Data on Hard Disk

To store data on hard disk instead of the eMMC, move the directories into /mnt/data_ext and create symlinks on /mnt/data.

unifi-systemd stop
mv /mnt/data/etc /mnt/data_ext/etc && ln -s /mnt/data_ext/etc /mnt/data/etc
mv /mnt/data/var /mnt/data_ext/var && ln -s /mnt/data_ext/var /mnt/data/var
unifi-systemd start

Migrating from udm-boot

To migrate from udm-boot, please install unifi-systemd and unifi-systemd-units first.

podman exec unifi-os dpkg -P udm-boot
podman exec unifi-systemd systemctl enable unifi-entrypoint@mnt-data-on_boot.d.service