Skip to content

Commit

Permalink
Various Runit changes (#5)
Browse files Browse the repository at this point in the history
* Move runit binaries to a dedicated directory

* Adjust options for cp command during install (#71)

* Add opensysusers initscript compatiblity
  • Loading branch information
konimex authored and cromerc committed Jan 7, 2018
1 parent 253e6b1 commit 953c999
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ all:
$(CC) $(CFLAGS) pause.c -o pause $(LDFLAGS)

install:
install -d ${DESTDIR}${PREFIX}/bin
install -m755 halt ${DESTDIR}${PREFIX}/bin/halt-runit
install -m755 pause ${DESTDIR}${PREFIX}/bin/pause-runit
install -m755 shutdown ${DESTDIR}${PREFIX}/bin/shutdown-runit
install -m755 modules-load ${DESTDIR}${PREFIX}/bin/modules-load
install -m755 zzz ${DESTDIR}${PREFIX}/bin/zzz-runit
ln -sf halt-runit ${DESTDIR}${PREFIX}/bin/poweroff-runit
ln -sf halt-runit ${DESTDIR}${PREFIX}/bin/reboot-runit
install -d ${DESTDIR}${PREFIX}/lib/runit-artix/bin
install -m755 halt ${DESTDIR}${PREFIX}/lib/runit-artix/bin/halt
install -m755 pause ${DESTDIR}${PREFIX}/lib/runit-artix/bin/pause
install -m755 shutdown ${DESTDIR}${PREFIX}/lib/runit-artix/bin/shutdown
install -m755 modules-load ${DESTDIR}${PREFIX}/lib/runit-artix/bin/modules-load
install -m755 zzz ${DESTDIR}${PREFIX}/lib/runit-artix/bin/zzz
ln -sf halt ${DESTDIR}${PREFIX}/lib/runit-artix/bin/poweroff
ln -sf halt ${DESTDIR}${PREFIX}/lib/runit-artix/bin/reboot
install -d ${DESTDIR}${PREFIX}/share/man/man1
install -m644 pause.1 ${DESTDIR}${PREFIX}/share/man/man1
install -d ${DESTDIR}${PREFIX}/share/man/man8
Expand All @@ -35,8 +35,8 @@ install:
install -m755 rc.shutdown ${DESTDIR}/etc/runit
ln -sf /run/runit/reboot ${DESTDIR}/etc/runit/
ln -sf /run/runit/stopit ${DESTDIR}/etc/runit/
cp -aP runsvdir/* ${DESTDIR}/etc/runit/runsvdir/
cp -aP services/* ${DESTDIR}/etc/runit/sv/
cp -R --no-dereference --preserve=mode,links -v runsvdir/* ${DESTDIR}/etc/runit/runsvdir/
cp -R --no-dereference --preserve=mode,links -v services/* ${DESTDIR}/etc/runit/sv/

clean:
-rm -f halt pause
Expand Down
3 changes: 3 additions & 0 deletions core-services/05-misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ if [ -n "$TIMEZONE" ]; then
msg "Setting up timezone to '${TIMEZONE}'..."
ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
fi

msg "Setting up sysusers.d entries..."
sysusers

0 comments on commit 953c999

Please sign in to comment.