[Bug 213641] www/otrs: Update to 5.0.13, Minor improvements

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 14 06:32:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213641

--- Comment #3 from knezour at weboutsourcing.cz ---
Hi,

this is working for me as /usr/local/etc/rc.d/otrs, but it is my first try on
rc scripting, so it may not be the best possible way
--------------
#!/bin/sh

# PROVIDE: otrs

. /etc/rc.subr

name="otrs"
rcvar=otrs_enable

load_rc_config $name
: ${otrs_enable:=no}

otrs_user=otrs

command_interpreter=/usr/local/bin/perl
command=/usr/local/otrs/bin/otrs.Daemon.pl

start_postcmd="su -m otrs -c '/usr/local/otrs/bin/Cron.sh start'"
stop_precmd="su -m otrs -c '/usr/local/otrs/bin/Cron.sh stop'"
status_cmd="su -m otrs -c '/usr/local/otrs/bin/otrs.Daemon.pl status'"
start_cmd="su -m otrs -c '/usr/local/otrs/bin/otrs.Daemon.pl start'"
stop_cmd="su -m otrs -c '/usr/local/otrs/bin/otrs.Daemon.pl stop'"

run_rc_command "$1"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list