FreeBSD Bugzilla – Attachment 176686 Details for
Bug 213954
net-mgmt/seafile-server Initscript only does not work when executed with service
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
rc.d/seafile
seafile.diff (text/plain), 1.47 KB, created by
Ultima
on 2016-11-06 14:45:33 UTC
(
hide
)
Description:
rc.d/seafile
Filename:
MIME Type:
Creator:
Ultima
Created:
2016-11-06 14:45:33 UTC
Size:
1.47 KB
patch
obsolete
>--- seafile.orig 2016-11-05 16:22:02.000000000 -0400 >+++ seafile 2016-11-06 09:33:02.441624000 -0500 >@@ -58,12 +58,14 @@ stop_cmd="seafile_stop" > > command="/usr/local/www/haiwen/seafile-server/seafile/bin/seafile-controller" > command_args="-c \"${seafile_ccnet}\" -d \"${seafile_datadir}\" -F \"${seafile_conf}\" -L \"${seafile_logdir}\" -g \"${seafile_loglevel}\" -G \"${seafile_loglevel}\"" >+command_env="PATH=${seafile_path}/seafile/bin:$PATH \ >+ LD_LIBRARY_PATH=${seafile_path}/seafile/lib/:${seafile_path}/seafile/lib64:${LD_LIBRARY_PATH}" > > required_dirs="${seafile_ccnet} ${seafile_conf} ${seafile_datadir}" > required_files="${seafile_ccnet}/seafile.ini" > > test_config() { >- if ! su -m ${seafile_user} -c "${command} -t ${command_args}" ; then >+ if ! su -m ${seafile_user} -c "env $command_env ${command} -t ${command_args}" ; then > exit 1; > fi > } >@@ -95,11 +97,6 @@ validate_already_running() { > check_component_running "seafdav" "wsgidav.server.run_server" > } > >-prepare_env() { >-export PATH=${seafile_path}/seafile/bin:$PATH >-export LD_LIBRARY_PATH=${seafile_path}/seafile/lib/:${seafile_path}/seafile/lib64:${LD_LIBRARY_PATH} >-} >- > seafile_start() { > check_required_before; > validate_already_running; >@@ -108,7 +105,7 @@ seafile_start() { > echo "Starting seafile server, please wait ..." > > su -m "${seafile_user}" -c "mkdir -p $seafile_logdir" >- su -m "${seafile_user}" -c "$command $command_args" >+ su -m "${seafile_user}" -c "env $command_env $command $command_args" > > sleep 3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213954
:
176686