freebsd-ports/www/sogo4/files/sogod.in
Jose Alonso Cardenas Marquez 33c7ed40ec - New ports: www/sogo4 and sogo4-activesync
SOGo is a fully supported and trusted groupware server with a focus on
scalability and open standards. It provides a rich AJAX-based Web
interface and supports multiple native clients through the use of
standard protocols such as CalDAV, CardDAV and GroupDAV.

WWW: http://sogo.nu/
2018-06-03 05:59:04 +00:00

29 lines
552 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: sogod
# REQUIRE: NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name=sogod
rcvar=sogod_enable
load_rc_config ${name}
: ${sogod_enable:=NO}
command=%%GNUSTEP_LOCAL_TOOLS%%/Admin/${name}
pidfile=/var/run/sogo/sogo.pid
sogod_user=${name}
sogod_group=${name}
start_precmd="cd /; . %%GNUSTEP_MAKEFILES%%/GNUstep.sh; install -d -m 775 -g ${sogod_group} /var/log/sogo /var/run/sogo"
stop_precmd='cd /; . %%GNUSTEP_MAKEFILES%%/GNUstep.sh'
restart_precmd='cd /; . %%GNUSTEP_MAKEFILES%%/GNUstep.sh'
run_rc_command "$1"