mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
9480db20e7
that was commonly used on commercial UNIX variants such as Sun Solaris, HP-UX and IBM AIX. Developed between 1993 and 1999, it has now been released under an Open Source licence by The Open Group. WWW: https://sourceforge.net/p/cdesktopenv/wiki/Home/
31 lines
607 B
Bash
31 lines
607 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: dtspc
|
|
# REQUIRE: rpcbind
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following line to /etc/rc.conf to enable dtspc:
|
|
#
|
|
# dtspc_enable=YES
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=dtspc
|
|
rcvar=dtspc_enable
|
|
desc="CDE Subprocess Control Service"
|
|
start_precmd="force_depend rpcbind || exit 1"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${dtspc_enable:=NO}
|
|
|
|
command=/usr/sbin/daemon
|
|
pidfile=/var/run/dtspc.pid
|
|
command_args="-P $pidfile %%PREFIX%%/dt/bin/dtspcd"
|
|
start_precmd="ln -sf %%PREFIX%%/dt /usr/dt && ln -sf %%PREFIX%%/etc/dt /etc/dt"
|
|
stop_postcmd="[ -L /usr/dt -a -L /etc/dt ] && rm /usr/dt /etc/dt"
|
|
|
|
run_rc_command $1
|