ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Vladimir A. Svyatoshenko" <svyt@nmu.org.ua>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] ошибка скрипта в init.d
Date: Mon, 19 Sep 2005 16:33:31 +0400
Message-ID: <20050919163331.6ec01e5d@U_DEFENCE> (raw)
In-Reply-To: <432EBBC5.5080003@altlinux.ru>

On Mon, 19 Sep 2005 16:23:17 +0300
Andrei Bulava <abulava@altlinux.ru> wrote:


> > Starting LAMS Server 1.0.1...
> > su: invalid option -- m
> > usage: su [-|-l] [-c "command"] [-s "shell"] [username]
> > 
> > 
> > что это может означать?
> 
> su в RedHat и ALT очень разные:
> 
> [FC2]$ rpm -qf `which su`
> coreutils-5.2.1-7
> 
> [ALT Sisyphus]$ rpm -qf `which su`
> su-0.60-alt22
> 

Что в этой ситуации можно сделать ?

Вот фрагиент отвечающий за старт

startit() {
    echo "Starting $APP_LONG_NAME..."
    getpid
    if [ "X$pid" = "X" ]
    then
            if [ "X$RUN_AS_USER" = "X" ]
            then
                cd $LAMS_HOME/jboss/bin/; ./startlams.sh &
            else
                su -m $RUN_AS_USER -c "cd $LAMS_HOME/jboss/bin/; ./startlams.sh &"
            fi

    else
        echo "$APP_LONG_NAME is already running."
        exit 1
    fi
}




  reply	other threads:[~2005-09-19 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19 12:24 Vladimir A. Svyatoshenko
2005-09-19 13:23 ` Andrei Bulava
2005-09-19 12:33   ` Vladimir A. Svyatoshenko [this message]
2005-09-19 12:40     ` Vladimir A. Svyatoshenko
2005-09-19 13:33   ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050919163331.6ec01e5d@U_DEFENCE \
    --to=svyt@nmu.org.ua \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git