X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 0DDE01A757F2 for ; Sat, 15 Oct 2011 13:23:24 +0000 (UTC) Received: by iaky10 with SMTP id y10so4900322iak.13 for ; Sat, 15 Oct 2011 06:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=LlKVtdQSU3e9xsxsnIDvsmJU5YrTbpj3d5gSPB/Qor8=; b=oTD26A8IJ4b67nxHi5q4T+9QecbTUTpbBJVS81jHz7neshDdRIIzm4z6sMFjqMNXvw uzZmerHdKw6phdi6e4bnNar2/E3BGiOOUwEPEuy+3kkgUCCP0ZjlfVvNFy3IzGFdbgAU 7tmXSMsJJb3iT4KpTb7eKPi/i7UrR2LFiLX3A= Received: by 10.68.16.196 with SMTP id i4mr24001385pbd.97.1318685003069; Sat, 15 Oct 2011 06:23:23 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.143.66.10 with HTTP; Sat, 15 Oct 2011 06:23:03 -0700 (PDT) From: =?UTF-8?Q?Ad=C3=A8lphe_Rafanambinana?= Date: Sat, 15 Oct 2011 16:23:03 +0300 Message-ID: Subject: [alpine-devel] How to run script at startup To: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=bcaec51dd7d52db73604af564717 --bcaec51dd7d52db73604af564717 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I'd like to run one program at startup. Then I put the command into a bash script: #!/bin/bash /usr/bin/screen -dmS I create a "rc.local" file and put it to /etc (I tried to put it to /et/init.d/rc.local too) When I run it mannually, it works well but it wouldn't start at next boot. Anyone can help me to get it working? Thank you, --=20 Ad=C3=A8lphe Rafanambinana --bcaec51dd7d52db73604af564717 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable = Hi all,

I'd like to run one program at startup. Then I put the c= ommand into a bash script:

#!/bin/bash
/usr/bin/screen -dmS <s= ession_name> </path/to/command>

I create a "rc.local" file and put it to /etc (I tried to put= it to /et/init.d/rc.local too)
When I run it mannually, it works well b= ut it wouldn't start at next boot.

Anyone can help me to get it = working?

Thank you,
--
Ad=C3=A8l= phe Rafanambinana


--bcaec51dd7d52db73604af564717-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---