mirror of https://github.com/fairyglade/ly.git
Merge pull request #1 from TerminalJunki/dev
added service files and changed makefile for s6 support
This commit is contained in:
commit
d57ef8d7be
7
makefile
7
makefile
|
|
@ -104,6 +104,13 @@ installrunit:
|
||||||
@echo "installing runit service"
|
@echo "installing runit service"
|
||||||
@install -DZ $(RESD)/ly-runit-service/* -t ${DESTDIR}/etc/sv/ly
|
@install -DZ $(RESD)/ly-runit-service/* -t ${DESTDIR}/etc/sv/ly
|
||||||
|
|
||||||
|
installs6:
|
||||||
|
@echo "installing s6 service"
|
||||||
|
@echo "\tIMPORTANT: PLEASE READ CAREFULLY!\nLy will not function properly if tty2 or the one set in config isn't disabled. \nTo do this edit "/etc/s6/config/tty2.conf" and set ' SPAWN="no" '\nThen either reboot the system or run in order\n"s6-rc -d change tty2", "kill $$\(pgrep ly-dm\)", "s6-rc -u change ly-srv"."
|
||||||
|
@touch ${DESTDIR}/etc/s6/adminsv/default/contents.d/ly-srv
|
||||||
|
@install -DZ $(RESD)/ly-s6/* -t ${DESTDIR}/etc/s6/sv/ly-srv
|
||||||
|
@s6-db-reload
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo "uninstalling"
|
@echo "uninstalling"
|
||||||
@rm -rf ${DESTDIR}/etc/ly
|
@rm -rf ${DESTDIR}/etc/ly
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
Ly will not function properly if tty2 or the one set in config isn't disabled.
|
||||||
|
To do this edit "/etc/s6/config/tty2.conf" and set ' SPAWN="no" '
|
||||||
|
Then either reboot the system or run in order "s6-rc -d change tty2", "kill $(pgrep ly-dm)", "s6-rc -u change ly-srv".
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
exec agetty -L -8 -n -l /usr/bin/ly-dm tty2 115200
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
||||||
Loading…
Reference in New Issue