Arch does not use SysV. See [1]. Thus, /etc/rc.local is the correct advice. <div><br></div><div dir="ltr">[1] -- <a href="https://wiki.archlinux.org/index.php/Arch_Boot_Process">https://wiki.archlinux.org/index.php/Arch_Boot_Process</a><span></span><br>
<br>On Thursday, May 3, 2012, JD wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If these scripts can be run automatically at boot, look at 'su - bestuser' and<br>
put that into /etc/rc.local or write a proper init.d/ script. There are<br>
thousands of examples. You probably want yours to happen later in the boot<br>
sequence, so a starting number higher than 90 would be good for the file name.<br>
I don't know anything about Arch, but on debian the 'update-rc.d' tool is the<br>
easy way to setup scripts for different runlevel start/stop needs.<br>
<a href="http://www.debian-administration.org/articles/28" target="_blank">http://www.debian-administration.org/articles/28</a> has more.<br>
<br>
If this needs to work **only** after login, use a PID file in a script ...<br>
probably just like that init.d/ script and if the PID file exists, then the<br>
process was left running. If it doesn't, then you need to start it. Be certain<br>
you capture any signals in your script to clean up the PID file and remember to<br>
clean it up at the "stop" command.<br>
<br>
Neither of these methods need a GUI. A 10 line shell script will do. Of course,<br>
you could link the script to a panel icon if you like.<br>
<br>
Best of all, you don't need to actually login as the user to make the program<br>
start. Effectively, your script(s) would behave like apache or any other daemon<br>
does on any UNIX system.<br>
<br>
Another item you can look at is the difference between the ~/.login and<br>
~/.profile files, though I can't say that you want to use them in this situation.<br>
<br>
<br>
<br>
<br>
On 05/03/2012 01:20 PM, Narahari 'n' Savitha wrote:<br>
> Friends:<br>
><br>
> I have two flavours of VM's I have setup.<br>
><br>
> Both are Arch Linux.<br>
><br>
> 1. No X Server<br>
><br>
> 2. XFCE based desktop<br>
><br>
><br>
> For the NON-X server<br>
><br>
> I want to be able to auto login as user "bestuser".<br>
><br>
> As soon as bestuser logs in, only one time, a particular shell script (or a<br>
> bunch of scripts) should run. (not each time terminal opens)<br>
> If possible I prefer to auto login the bestuser and thereby auto-run-once a<br>
> bunch of scripts.<br>
><br>
> For the XFCE desktop setup,<br>
><br>
> In the Windoze world we have the tweak-ui app that auto logs in the user and the<br>
> startup folder executes what you want. I want similar to that in XFCE4.<br>
><br>
> Any suggestions would help.<br>
><br>
> -Narahari<br>
><br>
><br>
><br>
> This body part will be downloaded on demand.<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Ale@ale.org')">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br>-- <br>James Sumners<br><a href="http://james.roomfullofmirrors.com/">http://james.roomfullofmirrors.com/</a><br><br>"All governments suffer a recurring problem: Power attracts pathological personalities. It is not that power corrupts but that it is magnetic to the corruptible. Such people have a tendency to become drunk on violence, a condition to which they are quickly addicted."<br>
<br>Missionaria Protectiva, Text QIV (decto)<br>CH:D 59<br>