I made the changes to the apache user so it has a shell now and it
worked. Once the new release invokes a shell on its own I can easily
change it back.
Thanks for the help on this.
Is there a way to import crons into webmin or do they have to be added
one by one? I have a ton I want to start running using the cluster cron
module and it would be easier if I could import them all instead of
entering them one by one. I don't meed to assign them to any of the
other servers in the cluster yet, leaving them on the "master" webmin
server would be fine, I can go back later and start assigning servers to
run on.
David
On 02/28/2012 11:30 PM, Jamie Cameron wrote:
>
> Currently it uses a command like :
>
> su apache -c "command"
>
> However, this won't work if apache doesn't have a shell. I will fix
> Webmin in the next release to use su -s /bin/sh instead, to avoid this
> problem..
>
> On 28/Feb/2012 20:24 David <david@...> wrote ..
>
>> Your question sheds some light on how webmin executes crons. Does
>> webmin require the cron,user to have a shell?
>>
>> To answer your question the servers are setup to not allow root ssh,
>> and apache is configured with /bin/nologin so becoming apache fails
>> because there is no shell.
>>
>> When we manually setup contabs for Apache we install them using
>> "crontab -u apache -e " which doesn't require a shell since cron is
>> owned by root.
>>
>>
>>
>> Sent from my Galaxy S2
>>
>>
>>
>> -------- Original message --------
>> Subject: Re: [webmin-l] Using Cluster Cron Job
>> From: Jamie Cameron <jcameron@...>
>> To: Webmin users list <webadmin-list@...>
>> CC:
>>
>>
>> On 28/Feb/2012 14:12 David <david@...> wrote ..
>> > I have a RHCS cluster and have webmin running on all three nodes in
>> the
>> > cluster. Node 1 has been designated as the primary node for all
>> cluster
>> > management activities and is where I have been trying to implement
>> using
>> > the cluster cron job module.
>> >
>> > I added the Server index module to node 1 and added the other two
>> nodes
>> > in the cluster to node 1 so node 2 and 3 are available.
>> >
>> > I configured a test cron in the cluster cron module on node one and
>> set
>> > it to run as apache (the user most of our crons run as). When I tried
>> > to run the cron now I got the error "Output from Node 1 This
>> account is
>> > currently not available".
>> >
>> > Is this referring to the user the cron is running as, or the node
>> > itself? I couldn' t find much info on how to configure clustered
>> cron so
>> > I maybe missing some webmin configuration.
>> >
>> > Any help would be appreciated.
>>
>> That error likely means that webmin on the remote system (node 1) cannot
>> run commands as user apache.
>>
>> If you SSH to node 1 as root, can you su to apache and run commands?
>>
>> - Jamie
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> -
>> Forwarded by the Webmin mailing list at
>> webadmin-list@...
>> To remove yourself from this list, go to
>> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>
>
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
> -
> Forwarded by the Webmin mailing list at webadmin-list@...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
|