1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/x11-wm/cde/files/dtspc.in
Chris Rees 9480db20e7 CDE - The Common Desktop Environment is X Windows desktop environment
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/
2017-05-29 20:05:21 +00:00

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