[SM-Commit] GIT changes to master grimoire by Bearcat Sandor (5bc5116ac37bd1bb955e0e75c5090065b2680cea)

Jeremy Blosser jblosser-smgl at firinn.org
Tue Oct 10 18:56:45 EDT 2006


On Aug 19, Bearcat Sandor [scm at mail.sourcemage.org] wrote:
> GIT changes to master grimoire by Bearcat Sandor <sourcemage at feline-soul.com>:
> 
>  chat-im/jabberd/init.d/jabberd |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> New commits:
> commit 5bc5116ac37bd1bb955e0e75c5090065b2680cea
> Author: Bearcat Sandor <sourcemage at feline-soul.com>
> Commit: Bearcat Sandor <sourcemage at feline-soul.com>
> 
>     altered jabberd init script to run as root. It will not start otherwise.

This is a bad idea... this is a network-listening daemon running as root.
Why does it need this?  I know it hasn't always, I run it as jabber fine.
This is a major change, there should at least have been a bug discussion on
this.

> diff --git a/chat-im/jabberd/init.d/jabberd b/chat-im/jabberd/init.d/jabberd
> index b899dba..e1d30ad 100755
> --- a/chat-im/jabberd/init.d/jabberd
> +++ b/chat-im/jabberd/init.d/jabberd
> @@ -7,21 +7,21 @@ NEEDS="+network +remote_fs"
>  
>  case $1 in
>    start)    echo "Starting jabberd..."
> -            daemon -u jabber -n jabberd jabberd
> +            daemon -u root -n jabberd jabberd
>              evaluate_retval
>              ;;
>  
>    stop)     echo "Stopping jabberd..."
> -            daemon -u jabber -n jabberd --stop
> +            daemon -u root -n jabberd --stop
>              evaluate_retval
>              ;;
>  
>    restart)  echo "Restarting jabberd..."
> -            daemon -u jabber -n jabberd --restart
> +            daemon -u root -n jabberd --restart
>              evaluate_retval
>              ;;
>  
> -  status)   daemon -v -u jabber -n jabberd --running
> +  status)   daemon -v -u root -n jabberd --running
>              ;;
>  
>    *)        echo "Usage: $0 {start|stop|restart|status}"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20061010/df618597/attachment.bin 


More information about the SM-Commit mailing list