rc-local - How to enable ???

jd1008 jd1008 at gmail.com
Thu Dec 17 22:59:54 UTC 2015



On 12/17/2015 03:05 PM, Joe Zeff wrote:
> On 12/17/2015 01:52 PM, jd1008 wrote:
>> $ sudo systemctl -l status rc-local
>>    rc-local.service - /etc/rc.d/rc.local Compatibility
>>     Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static;
>> vendor preset: disabled)  <<<<< DISABLED ????
>>     Active: active (exited) since Thu 2015-12-17 12:21:21 MST; 2h 16min
>> ago                     <<<<< Active??? How??? It says it is disabled!!!
>> I do have the executable /etc/rc.d/rc.local shell script.
>
> First off, it's a waste of time using sudo for this; systemctl status 
> doesn't need root.  Second, have you checked to make sure that the 
> permissions on the script are what you think they are and that the 
> contents are correct?  (My version starts with #! /bin/bash and works 
> just fine.)
To all your questions: yes.
Script is executable in the manner you describe #!/bin/bash


More information about the users mailing list