FreeBSD Bugzilla – Attachment 241119 Details for
Bug 266866
net-p2p/amule: Executable segfaults after launch/Update rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Updated rc file for amuled
amuled (text/plain), 1.52 KB, created by
echoxxzz
on 2023-03-26 03:34:08 UTC
(
hide
)
Description:
Updated rc file for amuled
Filename:
MIME Type:
Creator:
echoxxzz
Created:
2023-03-26 03:34:08 UTC
Size:
1.52 KB
patch
obsolete
>#!/bin/sh > ># aMule RCng startup script ># Ogirinal work from Gabriele Cecchetti (amule.org forum) ># ># PROVIDE: amuled ># REQUIRE: NETWORKING SERVERS ># BEFORE: DAEMON ># KEYWORD: shutdown ># ># Add the following lines to /etc/rc.conf to enable amuled at startup ># amuled (bool): Set to "NO" by default. ># Set it to "YES" to enable amuled ># amuled_user (str): Set to user running amuled ># (default 'aMule') ># amuled_config (str): Set to home directory of user running amuled ># (default /home/${amuled_user}) > >. /etc/rc.subr > >name="amuled" >rcvar=amuled_enable > >load_rc_config $name > >[ -z "$amuled_enable" ] && amuled_enable="NO" >[ -z "$amuled_user" ] && amuled_user="aMule" >[ -z "$amuled_config" ] && amuled_config="/home/${amuled_user}/.aMule" > >pid="/var/run/${name}/${name}.pid" > >required_dirs="${amuled_config}" >required_files="${amuled_config}/amule.conf" > >start_cmd="${name}_start" >stop_cmd="${name}_stop" > >amuled_start() >{ > if [ ! -f ${pid} ] > then > install -o ${amuled_user} -d "/var/run/${name}" > su -m ${amuled_user} -c "/usr/local/bin/amuled --full-daemon --config-dir=${amuled_config} --pid-file=${pid}" > echo "Started ${name}." > else > echo "${name} seems to be already running -- remove ${pid} manually if needed." > fi >} > >amuled_stop() >{ > if [ -f ${pid} ] > then > pkill -SIGTERM -F ${pid} && rm ${pid} > echo "Stopped ${name}." > else > echo "${name} doesn't seem to be running -- create /var/run/${name}.run if needed." > fi >} > >run_rc_command "$1"
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 Raw
Actions:
View
Attachments on
bug 266866
:
241119
|
241128