Re: Replacement for rc.local

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/25/15 08:36, Alex Regan wrote:
> I have a set of commands that I need to run after my fedora21 desktop has completed booting. Should I just create a whole sysv init script in /etc/rc.d/init.d, or is there a more updated way using systemd without having to create a whole service around it?
>
> The commands I want to run are:
>
> for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 2 > $i; done
>
> I'd like to disable the power management for USB devices, as once the desktop goes into suspend, the USB keyboard/mouse won't wake it up. The desktop is also blanked when accessing it through tigervnc.
>
> root doesn't always login, or I would otherwise just put it in the bashrc.
>
> These commands seem to fix it.

Read the comments in /lib/systemd/system/rc-local.service and follow the instructions.

-- 
If you can't laugh at yourself, others will gladly oblige.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux