--
Regards,
Frank
"Jack of all, fubars"
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-25-2012, 05:34 PM
David G. Miller
rc.local not loaded on boot
Bruno Martins <bmomartins <at> gmail.com> writes:
>
> Hello list,
>
> I can read here:
>
http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html
>
> the following:
>
> 3.2.4. rc.local no longer packaged
>
<SNIP>
You need to enable the service through systemctl. Here's a long discussion that
looks at quite a few of the things that can affect getting rc.local functional.
Quite a bit more to it than just putting a script there:
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-25-2012, 05:57 PM
Ed Greshko
rc.local not loaded on boot
On 03/26/2012 01:34 AM, David G. Miller wrote:
> You need to enable the service through systemctl. Here's a long discussion that
> looks at quite a few of the things that can affect getting rc.local functional.
> Quite a bit more to it than just putting a script there:
Well....
I did nothing else other than create a /etc/rc.d/rc.local ...
[egreshko@f16-1 rc.d]$ ll
total 36
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 init.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc0.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc1.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc2.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc3.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc4.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc5.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc6.d
-rwxr-xr-x. 1 root root 39 Mar 25 23:36 rc.local
with
#!/bin/sh -e
#exit 0
touch /tmp/XXXX
And it on reboot a file with name XXXX was in /tmp
--
Do not condemn the judgment of another because it differs from your own. You may both
be wrong. -- Dandemis
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-25-2012, 06:44 PM
Kevin Fenzi
rc.local not loaded on boot
On Sun, 25 Mar 2012 15:57:25 +0100
Bruno Martins <bmomartins@gmail.com> wrote:
> Hello list,
>
> I can read here:
> http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html
>
> the following:
>
>
> 3.2.4. rc.local no longer packaged
>
> The |/etc/rc.d/rc.local| local customization script is no longer
> included by default. Administrators who need this functionality
> merely have to create this file, make it executable, and it will run
> on boot. Upgrades are not affected by this change.
>
> However, in my system this isn't happening.
> ## Enables mousepad tapping in LXDE.
> synclient TapButton1=1
This will fail. synclient needs a DISPLAY to work with. When rc.local
is run it's before there's any X session and thus no display. I would
expect this to not work.
> #exit 0
>
> However, if I run the file manually, it loads OK.
From an active X session? Yes, I would expect that to work since you
have a DISPLAY.
> Can you please give me a tip on this?
I would look at making these into a script, then give it a desktop file
and set it to autostart in your desktop env. At that point it should
have a display and work.
> Best regards,
>
kevin
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-25-2012, 08:41 PM
Bruno Martins
rc.local not loaded on boot
On 03/25/2012 07:44 PM, Kevin Fenzi wrote:
On Sun, 25 Mar 2012 15:57:25 +0100
Bruno Martins<bmomartins@gmail.com> wrote:
Hello list,
I can read here:
http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html
the following:
3.2.4. rc.local no longer packaged
The |/etc/rc.d/rc.local| local customization script is no longer
included by default. Administrators who need this functionality
merely have to create this file, make it executable, and it will run
on boot. Upgrades are not affected by this change.
However, in my system this isn't happening.
...snip...
## Defaults brightness to maximum.
echo 10> /sys/class/backlight/acpi_video0/brightness
I would expect this to work. Does it?
## Enables mousepad tapping in LXDE.
synclient TapButton1=1
This will fail. synclient needs a DISPLAY to work with. When rc.local
is run it's before there's any X session and thus no display. I would
expect this to not work.
## Enables mousepad vertical scrolling in LXDE.
synclient VertEdgeScroll=1
Ditto above.
#exit 0
However, if I run the file manually, it loads OK.
From an active X session? Yes, I would expect that to work since you
have a DISPLAY.
Can you please give me a tip on this?
I would look at making these into a script, then give it a desktop file
and set it to autostart in your desktop env. At that point it should
have a display and work.
Best regards,
kevin
You're right Kevin.
In fact that first line of rc.local was being loaded.
I've done what you told me (create sh script, add it to auto-loaded
programs) and it's working now.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-26-2012, 01:18 AM
"Michael D. Setzer II"
rc.local not loaded on boot
On 26 Mar 2012 at 1:57, Ed Greshko wrote:
Date sent: Mon, 26 Mar 2012 01:57:58 +0800
From: Ed Greshko <Ed.Greshko@greshko.com>
To: Community support for Fedora users
<users@lists.fedoraproject.org>
Subject: Re: rc.local not loaded on boot
Send reply to: Community support for Fedora users
<users@lists.fedoraproject.org>
> On 03/26/2012 01:34 AM, David G. Miller wrote:
> > You need to enable the service through systemctl. Here's a long
> > discussion that looks at quite a few of the things that can affect
> > getting rc.local functional.
> > Quite a bit more to it than just putting a script there:
>
> Well....
>
> I did nothing else other than create a /etc/rc.d/rc.local ...
>
> [egreshko@f16-1 rc.d]$ ll
> total 36
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 init.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc0.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc1.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc2.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc3.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc4.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc5.d
> drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc6.d
> -rwxr-xr-x. 1 root root 39 Mar 25 23:36 rc.local
>
> with
>
> #!/bin/sh -e
>
> #exit 0
>
> touch /tmp/XXXX
>
>
> And it on reboot a file with name XXXX was in /tmp
>
> [egreshko@f16-1 rc.d]$ ll /tmp/XXXX
> -rw-r--r--. 1 root root 0 Mar 25 23:37 /tmp/XXXX
what does
systemctl status rc-local.service shows?
try
systemctl enable rc-local.service show?
>
> --
> Do not condemn the judgment of another because it differs from your
> own. You may both be wrong. -- Dandemis -- users mailing list
> users@lists.fedoraproject.org To unsubscribe or change subscription
> options: https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have
> a question? Ask away: http://ask.fedoraproject.org
+----------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor
Guam Community College Computer Center
mailto:mikes@kuentos.guam.net
mailto:msetzerii@gmail.com
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+
http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned: 19,471
Processing time: 32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-26-2012, 04:04 AM
Ed Greshko
rc.local not loaded on boot
On 03/26/2012 09:18 AM, Michael D. Setzer II wrote:
> what does
> systemctl status rc-local.service shows?
static
But, it doesn't matter. It works as advertised. The problem the OP had, has been
solved. The command being used in his script required a DISPLAY.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-26-2012, 02:54 PM
Aaron Konstam
rc.local not loaded on boot
On Sun, 2012-03-25 at 17:34 +0000, David G. Miller wrote:
> Bruno Martins <bmomartins <at> gmail.com> writes:
>
> >
> > Hello list,
> >
> > I can read here:
> >
> http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html
> >
> > the following:
> >
> > 3.2.4. rc.local no longer packaged
> >
> <SNIP>
>
> You need to enable the service through systemctl. Here's a long discussion that
> looks at quite a few of the things that can affect getting rc.local functional.
> Quite a bit more to it than just putting a script there:
>
> http://forums.fedoraforum.org/showthread.php?t=272075
>
> Cheers,
> Dave
>
>
>
I can't make head of tail of the discussion in the web site you mention.
On my machine any systemctl statement that includes rc.local.service
returns a statement that rc.local.service does not exist.
What do you get from the web site?
--
================================================== =====================
My advice to you, my violent friend, is to seek out gold and sit on it.
-- The Dragon to Grendel, in John Gardner's "Grendel"
================================================== =====================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-26-2012, 03:00 PM
Aaron Konstam
rc.local not loaded on boot
On Mon, 2012-03-26 at 11:18 +1000, Michael D. Setzer II wrote:
> On 26 Mar 2012 at 1:57, Ed Greshko wrote:
>
> Date sent: Mon, 26 Mar 2012 01:57:58 +0800
> From: Ed Greshko <Ed.Greshko@greshko.com>
> To: Community support for Fedora users
> <users@lists.fedoraproject.org>
> Subject: Re: rc.local not loaded on boot
> Send reply to: Community support for Fedora users
> <users@lists.fedoraproject.org>
> > On 03/26/2012 01:34 AM, David G. Miller wrote:
> > > You need to enable the service through systemctl. Here's a long
> > > discussion that looks at quite a few of the things that can affect
> > > getting rc.local functional.
> > > Quite a bit more to it than just putting a script there:
> >
> > Well....
> >
> > I did nothing else other than create a /etc/rc.d/rc.local ...
> >
> > [egreshko@f16-1 rc.d]$ ll
> > total 36
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 init.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc0.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc1.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc2.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc3.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc4.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc5.d
> > drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc6.d
> > -rwxr-xr-x. 1 root root 39 Mar 25 23:36 rc.local
> >
> > with
> >
> > #!/bin/sh -e
> >
> > #exit 0
> >
> > touch /tmp/XXXX
> >
> >
> > And it on reboot a file with name XXXX was in /tmp
> >
> > [egreshko@f16-1 rc.d]$ ll /tmp/XXXX
> > -rw-r--r--. 1 root root 0 Mar 25 23:37 /tmp/XXXX
>
> what does
> systemctl status rc-local.service shows?
> try
> systemctl enable rc-local.service show?
both the above statements fail with and error messagwe : No such file or
directory.
--
================================================== =====================
Get hold of portable property. -- Charles Dickens, "Great Expectations"
================================================== =====================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
03-26-2012, 03:07 PM
"Dr. Michael J. Chudobiak"
rc.local not loaded on boot
On my machine any systemctl statement that includes rc.local.service
returns a statement that rc.local.service does not exist.
It should be "rc-local.service", not "rc.local.service". Like this:
[root@xena ~]# systemctl -a | grep rc-local
rc-local.service loaded active running <snip>
- Mike
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org