mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Update init service for FreeBSD
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#!/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"
|
||||
7
res/ly-freebsd-wrapper
Normal file
7
res/ly-freebsd-wrapper
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# On FreeBSD, even if we override the default login program, getty will still
|
||||
# try to append "login -fp root" as arguments to Ly, which is not supported.
|
||||
# To avoid this, we use a wrapper script that ignores these arguments before
|
||||
# actually executing Ly.
|
||||
exec $PREFIX_DIRECTORY/bin/$EXECUTABLE_NAME
|
||||
Reference in New Issue
Block a user