Add basic FreeBSD service, change default fallback TTY to 2

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2025-10-18 00:46:09 +02:00
parent 02f5aa702d
commit a3a8f11575
3 changed files with 51 additions and 1 deletions

23
res/ly-freebsd Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: ly
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name=ly
rcvar=ly_enable
command="/usr/local/bin/ly"
load_rc_config $name
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#
ly_enable=${ly_enable-"NO"}
pidfile=${ly_pidfile-"/var/run/ly.pid"}
run_rc_command "$1"