1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

contrib/rc/freebsd: Add FreeBSD start script from Douglas Carmichael

This commit is contained in:
Jon Trulson 2014-08-24 16:48:07 -06:00
parent f06d272600
commit 026b0e6569
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,8 @@
This is a startup script to run dtlogin upon booting a FreeBSD system.
Author: Douglas Carmichael <dcarmich@dcarmichael.net>
Instructions:
Put the dtlogin script in /usr/local/etc/rc.d (owned and executable by root.)
Add dtlogin_enable="YES" in /etc/rc.conf to enable dtlogin startup.

34
cde/contrib/rc/freebsd/dtlogin Executable file
View file

@ -0,0 +1,34 @@
#!/bin/sh
# Script to start dtlogin upon system boot for FreeBSD
# Instructions:
# Put this script in /usr/local/etc/rc.d (owned and read/execute by root.)
# Use dtlogin_enable="YES" in /etc/rc.conf to enable dtlogin startup.
#
# Author: Douglas Carmichael <dcarmich@dcarmichael.net>
#
# Define the services that dtlogin requires to start.
#
# PROVIDE: dtlogin
# REQUIRE: DAEMON moused rpcbind hald polkitd
. /etc/rc.subr
name=dtlogin
rcvar=dtlogin_enable
command="/usr/dt/bin/dtlogin"
command_args="&"
dtlogin_prestart()
{
if ! checkyesno dtlogin_enable ; then
return 0
fi
echo "Starting ${name}."
}
load_rc_config $name
run_rc_command "$1"