Re: differences between service command and running command directly

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

 



ESGLinux wrote:
> GOTCHA!!!!
>
> I always have read that running services using service command is safer
> than using the script directly
>
> the key is that service runs the script with env -i (with an empty
> enviroment) so if there is any wrong variable you are protected.
>
> My problem is that in /etc/profile.d/ I have defined a wrong variable and
> when I run /etc/init.d/httpd status the scripts runs with the corrupt
> enviroment.
<snip>
Good catch!

      mark

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux