synit/packaging/packages/synit-config/files/sbin/synit-init.sh

26 lines
408 B
Bash
Executable File

#!/bin/sh
mount -t devtmpfs none /dev
mkdir /dev/pts
mount -t devpts none /dev/pts
mkdir /dev/shm
mount -t tmpfs -o nodev,nosuid,noexec none /dev/shm
mount -t proc none /proc
mount -t sysfs none /sys
mount -t tmpfs none /run
# Docker wants this
mount -t cgroup2 none /sys/fs/cgroup
mount -o rw,remount /
mkdir -p /run/etc/syndicate/core
mkdir -p /usr/local/etc/syndicate/core
exec /sbin/synit-pid1