1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/sogo2/files/sogod.in
Jose Alonso Cardenas Marquez f63248c66e - Rename www/sogo to www/sogo2
- Update to 2.3.10

PR:		208406
Submitted by:	me
Approved by:	maintainer (Euan Thoms <euan at potensol.com>)
2016-05-02 23:04:58 +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"